Skip to main content
Back to registry

go-error-handling

cxuu/golang-skills

In Go, errors are values - they are created by code and consumed by code. This skill covers how to return, structure, wrap, and handle errors effectively.

Installs182
Install command
npx skills add https://github.com/cxuu/golang-skills --skill go-error-handling
Security audits
Gen Agent Trust HubPASS
SocketPASS
SnykPASS
About this skill
In Go, errors are values - they are created by code and consumed by code. This skill covers how to return, structure, wrap, and handle errors effectively. Normative : Required per Google's canonical Go style guide. Use error to signal that a function can fail. By convention, error is the last result parameter. Never return concrete error types from exported functions - a concrete nil pointer can become a non-nil interface value: When a function returns an error, callers must treat all non-error return values as unspecified unless explicitly documented. Commonly, non-error return values are their zero values. Tip : Functions taking a context.Context should usually return an error so callers can determine if the context was cancelled.

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does go-error-handling do?

In Go, errors are values - they are created by code and consumed by code. This skill covers how to return, structure, wrap, and handle errors effectively.

Is go-error-handling good?

go-error-handling does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does go-error-handling work with?

go-error-handling currently lists compatibility with codex, gemini-cli, opencode, cursor, kimi-cli, amp, github-copilot.

What are alternatives to go-error-handling?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install go-error-handling?

npx skills add https://github.com/cxuu/golang-skills --skill go-error-handling

Related skills

More from cxuu/golang-skills

Related skills

Alternatives in Software Engineering