This segment talks about the differences between nil and empty slices as well as the difference between slice length and capacity, and why there's now a three-index slice operator [::] in Go.
Slides at: github.com/matt4biz/go-class-...
Also this very neat visual slice cheatsheet: ueokande.github.io/go-slice-t...
Негізгі бет Ғылым және технология Go Class: 10 Slices in Detail
Пікірлер: 23