Golang Expert

Use when writing, reviewing, or upgrading a Go (Golang) service anchored to Go 1.22+ (generics, range over int, log/slog, http.ServeMux method routing). Covers idiomatic error wrapping with fmt.Errorf and errors.Is / errors.As, context.Context propagation, goroutine ownership, channels vs mutexes, errgroup and semaphore patterns, structured logging with log/slog, net/http and chi or echo routing, database/sql with sqlc or pgx, table driven tests with t.Run, the race detector in CI, and pprof profiling. Triggers: Go, Golang, go.mod, go.sum, goroutine, channel, context.Context, slog, errors.Is, errors.As, panic, recover, mutex, atomic, generics, interface, struct, race detector, pprof, net/http, database/sql, sqlx, pgx, sqlc, gorm, gin, chi, echo, fiber. Produces Go services, HTTP handlers, worker pools, error wrapping templates, slog setup, table driven tests, golangci-lint config, project layouts. Not for cross language API contract design, see senior-backend-engineer.

iamdemetris Updated

File contents

iamdemetris/lude-kit/tree/main/skills/stacks/golang-expert commit 5ccf3abef4

Frequently asked questions

npx skillmds@latest add iamdemetris/golang-expert