Answers for "loop list golang"

Go
3

loop list golang

a := []string{"Foo", "Bar"}
for i, s := range a {
    fmt.Println(i, s)
}
Posted by: Guest on April-11-2020

Browse Popular Code Answers by Language