Go Standard Library

Guides the agent to avoid common Go standard library mistakes when writing or reviewing Go code. Covers time.Duration misuse, time.After memory leaks, JSON handling pitfalls (type embedding, monotonic clock, map of any), SQL mistakes (sql.Open, connection pooling, prepared statements, null values, row iteration errors), closing transient resources (HTTP body, sql.Rows, os.File), missing return after HTTP error replies, and using default HTTP client/server without timeouts. Use when writing, reviewing, or refactoring code that uses the time, encoding/json, database/sql, net/http, or os packages.

v0lka a7863b2 12.6 KB Updated

File contents

v0lka/skills/tree/main/development/idiomatic-go/go-standard-library commit a7863b2053

Frequently asked questions

npx skillmds@latest add v0lka/go-standard-library