Command Palette

Search for a command to run...

Back to skills
skill № 16590

go-lang

Go language skill covering goroutines, channels, interfaces, error handling, modules, and testing. Use when building Go applications.

FreeNo executable scripts
skeletorfletby 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
Sign up freeI already have an account

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

Compare go-lang with