How to get values in slice with Go?

前端 未结 0 381
误落风尘
误落风尘 2021-01-26 10:44

For a slice in Go, I want to get all the items in it.

package main

import "fmt"

func main() {
    var ids = []int{1, 2, 3}
    fmt.Println(ids)
}

//          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题