Skip to main content
在 Manus 中运行任何 Skill
一键导入

golang-expert

星标0
分支0
更新时间2026年5月20日 22:42

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, ctx, slog, errors.Is, errors.As, defer, panic, recover, sync, mutex, RWMutex, atomic, generics, type parameter, interface, struct, embedding, GOMAXPROCS, race detector, pprof, gRPC Go, 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.

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

SKILL.md
readonly