TokenToSeaSkill 广场
English 控制台

Golang Error Handling

samber

Idiomatic Golang error handling — creation, wrapping with %w, errors.Is/As, errors.Join, custom error types, sentinel errors, panic/recover, the single handling rule, structured logging with slog, HTTP request logging middleware, and samber/oops for production errors. Built to make logs usable at scale with log aggregation 3rd-party tools.

安装

npx skills add samber/cc-skills-golang --skill golang-error-handling