Files
freeCodeCamp/guide/english/go/go-slices/index.md
shabnamNajafian 13d423e94e Update index.md (#22323)
* Update index.md

Add a short description for slices

* Removed stub
2018-11-06 13:29:16 -05:00

795 B

title
title
Go Slices

Go Slices

Slices are a key data type in Go, giving a more powerful interface to sequences than arrays.

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: