Understand the slice In Golang, a slice is a data structure that derives from an array. The slice’s main feature is the ability to grow in size (unlike an array). A slice could be defined as a struct: