Go for DevOps
You're viewing a free preview. Sign in free to read every script.
Why this exists Almost every Go program is slices, maps and structs. Each has one behaviour that surprises newcomers: slices share memory, map iteration order is random, and methods can change a struct only through a…
Go Basics: Slices, Maps and Structs
Slices and how append and slicing really work, maps with the comma-ok idiom, structs with methods and pointer receivers, and sorting a slice of structs. The three data structures behind nearly every Go program.
Sign in free to read this script, along with the rest of the library.
Sign in free