effective go

Apply best practices and conventions from the official Effective Go guide to write clean, idiomatic Go code.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "effective go" with this command: npx skills add openshift/hypershift/openshift-hypershift-effective-go

Effective Go

Apply best practices and conventions from the official Effective Go guide to write clean, idiomatic Go code.

When to Apply

Use this skill automatically when:

  • Writing new Go code

  • Reviewing Go code

  • Refactoring existing Go implementations

Key Reminders

Follow the conventions and patterns documented at https://go.dev/doc/effective_go, with particular attention to:

  • Formatting: Always use gofmt

  • this is non-negotiable

  • Naming: No underscores, use MixedCaps for exported names, mixedCaps for unexported

  • Error handling: Always check errors; return them, don't panic

  • Concurrency: Share memory by communicating (use channels)

  • Interfaces: Keep small (1-3 methods ideal); accept interfaces, return concrete types

  • Documentation: Document all exported symbols, starting with the symbol name

References

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

code formatting

No summary provided by upstream source.

Repository SourceNeeds Review
General

git commit format

No summary provided by upstream source.

Repository SourceNeeds Review
General

debug cluster

No summary provided by upstream source.

Repository SourceNeeds Review
General

pr review

No summary provided by upstream source.

Repository SourceNeeds Review