go-控制语句 发表于 2018-05-07 更新于 2019-09-25 分类于 Language 阅读次数: 本文字数: 245 阅读时长 ≈ 1 分钟 if、goto,for、select和switch range右边表达式支持:arraypointer to an arrayslicestringmapchannel permitting receive operations 比如:chan int or chan<- int for index, value := range mySlice { fmt.Println("index: " + index) fmt.Println("value: " + value)}