![1.png](http://studygolang.qiniudn.com/170817/878d41682159c4b427231ea85bb50aef.png)
为什么fmt.Println(buf[5:])这一句就不报index out of range问题,而只是fmt.Println(buf[5])这一句才报呢?
更多评论
参考 http://docs.studygolang.com/ref/spec#Slice_expressions
`0 <= low <= high <= len(buf)`
#1