Skip to content

Glossary: Go Basics

append

Built-in function that returns a slice with new elements added at the end. Always store the result back, as in `orders = append(orders, 5500)`.

Where the book teaches it

Related terms

nil slice