glang中switch ,case 无需break
在使用switch结构时,我们需要注意以下几点: 示例i := 0switch i{case 0: fmt.Printf("0") fallthroughcase 1: fmt.Printf("1")case 2: fallthroughcase 3: fmt.Printf("3")case 4, 5, 6: fmt.Printf("4, 5, 6