go-控制语句

if、goto,for、select和switch

range

右边表达式支持:
array
pointer to an array
slice
string
map
channel permitting receive operations 比如:chan int or chan<- int

for index, value := range mySlice {
fmt.Println("index: " + index)
fmt.Println("value: " + value)
}