Slices
8 lessons
- 01Arrays in GoUnderstanding fixed-size arrays, their declaration, and initialization in Go.
- 02Slices in GoHow slices provide a flexible, dynamically-sized view into arrays.
- 03Make, Len, and CapUnderstanding how to create slices with specific sizes and how length differs from capacity.
- 04Variadic FunctionsHow to define functions that accept an arbitrary number of arguments using the '...' syntax.
- 05AppendDynamically adding elements to a slice and understanding how re-allocation works.
- 06RangeIterating over slices and arrays efficiently using the range keyword.
- 07Slice of SlicesCreating multi-dimensional data structures like matrices using nested slices.
- 08Slices CheatsheetA quick reference for arrays, slices, variadic functions, and iteration in Go.