TokenToSeaSkill 广场
English 控制台

Go Defensive Coding

Eduardo Spinelli de Lima

Prevent panics, silent corruption, and subtle runtime bugs in Go: typed-nil interfaces, slice aliasing, integer overflow on conversion, float comparison, defer in loops, defensive copying at API boundaries, and zero-value design. Use when hardening code against crashes, reviewing for nil-safety, converting between numeric types, or deciding what to copy at a package boundary.

安装

npx skills add eduardo-sl/go-agent-skills --skill go-defensive-coding