1 dépôt
Using full slice expressions or copies to prevent append from modifying shared backing arrays.
Distinct from Zero-Copy Array Slicing: Distinct from Zero-Copy Array Slicing: focuses on preventing unintended side effects from append, not just efficient slicing.
Explore 1 awesome GitHub repository matching data & databases · Append Side Effect Isolations. Refine with filters or upvote what's useful.
100 Go Mistakes is a reference book and code review companion that catalogues frequent Go programming anti-patterns and provides corrected implementations for each one. It covers a wide range of common pitfalls, from range loop variable capture and interface nil handling to error wrapping and map iteration randomization, helping developers recognize and avoid these issues in their own code. The project distinguishes itself by offering a structured, example-driven approach to learning idiomatic Go. It covers core design decisions such as when to use pointer versus value receivers, how to apply
Shows how to avoid unintended modifications when appending to shared slices.