
Variadic Functions and the append(s, more...) Spread in Go: The Gotchas
Nil vs empty variadic slices, the shared-backing-array append trap, and the copy-when-you-must rules that keep Go slices from mutating each other.
Tag archive

Nil vs empty variadic slices, the shared-backing-array append trap, and the copy-when-you-must rules that keep Go slices from mutating each other.

In-place delete, insert, filter, and reverse in Go — plus the aliasing and memory-retention traps, and where the slices package covers you now.

Three Go slice aliasing bugs that pass tests and ship to prod: re-slice mutation, shared sub-slices, and append capacity surprises.

🧠 Go Slices Internals: Why Your Slice Might Be Lying to You If you’ve ever changed one...

Intro When we want to group a series of elements of the same type we can do it in Go in...

In this new series i will be talking about data structures in two of the biggest back-end languages...
Exploring slices in Go, what they are and how to use them effectively.