Slices

suggest change

A slice in Go is used where you would use an array in most other languages like Ruby, Python or C# or std::vector in C++.

A slice can grow and shrink. It is a view of a fixed-size backing array: a pointer, a length, and a capacity.

The zero value of a slice is nil.

Learn more about slices.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents