hugo/docs/content/en/quick-reference/glossary/slice.md
2025-02-13 10:40:34 +01:00

6 lines
287 B
Markdown

---
title: slice
reference: https://go.dev/ref/spec#Slice_types
---
A _slice_ is a numbered sequence of elements. Unlike Go's [_array_](g) data type, slices are dynamically sized. [_Elements_](g) within a slice can be [_scalars_](g), [_arrays_](g), [_maps_](g), pages, or other slices.