go-lang
Go language skill covering goroutines, channels, interfaces, error handling, modules, and testing. Use when building Go applications.
by skeletorflet★ 48 GitHub stars
Install go-lang in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
go-lang
Core Concepts
- Goroutines: lightweight threads (go keyword), multiplexed onto OS threads by the runtime scheduler
- Channels: typed conduits for goroutine communication, support buffered/unbuffered and select for multiplexing
- Interfaces: implicit satisfaction, define behavior contracts with zero dependencies between types
- Structs + Methods: value receiver vs pointer receiver, composition over inheritance via embedding
Error Handling
- errors.Is/As: error chain inspection, Is checks sentinel values, As unwraps to target type
- No exceptions: functions return error as last value, caller handles explicitly
- defer/panic/recover: cleanup resources, panic for programmer errors, recover in goroutines only
Modules & Tooling
- go mod: dependency management, semantic import versioning, module cache, checksum database
- go fmt/vet: standardized formatting and static analysis
- go build/install: fast compilation, cross-compilation with GOOS/GOARCH
Common Code Patterns
- Table-driven tests: slice of test cases with input/expected, run with t.Run subtests
- Context: deadline propagation, cancellation signals, request-scoped values through API boundaries
- Stdlib: net/http (ServeMux, Handler), encoding/json (Marshal/Unmarshal), io (Reader/Writer), sync (Mutex, WaitGroup, Map)
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the go-lang skill do?
Go language skill covering goroutines, channels, interfaces, error handling, modules, and testing. Use when building Go applications.
How do I install the go-lang skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the go-lang skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…