README

Collections

len([some col])

Go passes a copy of collections by default

sort package has sorting e.g sort.Strings([collection])

Iteration

for i := range colors { //set i to current index    
    fmt.Println(colors[i])
}

usage

  • len(colors)

Last updated