diff --git a/guide/english/go/go-slices/index.md b/guide/english/go/go-slices/index.md index 029cac5b0e..38d75324d0 100644 --- a/guide/english/go/go-slices/index.md +++ b/guide/english/go/go-slices/index.md @@ -3,11 +3,11 @@ title: Go Slices --- ## Go Slices -This is a stub. [Help our community expand it](https://github.com/freecodecamp/guides/tree/master/src/pages/go/go-slices/index.md). +Slices are a key data type in Go, giving a more powerful interface to sequences than arrays. -[This quick style guide will help ensure your pull request gets accepted](https://github.com/freecodecamp/guides/blob/master/README.md). +Unlike arrays, slices are typed only by the elements they contain (not the number of elements). To create an empty slice with non-zero length, use the builtin make. Here we make a slice of strings of length 3 (initially zero-valued). - +```s := make([]string, 3)``` #### More Information: