Go in Production: Practical Go Engineering

Explore Go patterns and tradeoffs through concrete examples and debugging lessons, from goroutines and context cancellation to profiling and memory use.

25 articles · by Niko Minadze

Represent and transform data safely

Remove Duplicate Values from a Go Slice Without Losing First-Seen Order

Use a map-backed pass to keep the first occurrence of each comparable value, an equality function for other values, or sorting and compacting when order can change.

Read article

More articles

View archive

Type at least two characters.

Press <kbd>Esc</kbd> to closeOpen the search page