# Golang Development

> You MUST activate this skill when working on Go projects

You MUST activate this skill when working on Go projects

- Page: https://ss33.ai/skills/sammcj/golang-development-77602125972
- Publisher: sammcj
- Category: [Software Development](https://ss33.ai/skills/category/software-development-t44z8z) › [Languages & frameworks](https://ss33.ai/skills/category/software-development-t44z8z/languages-and-frameworks-rgvrso)
- License: Apache-2.0
- Source: https://github.com/sammcj/agentic-coding/blob/b36813b10b9f62a649f3878e30955015aea8b98d/Skills/golang-development/SKILL.md

## Skill

SKILL.md: https://ss33.ai/api/v1/ss33/download/sammcj/golang-development-77602125972

# Go

- Use latest Go version (verify, don't assume). Build with `-ldflags="-s -w"`
- Check modernity: `go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -fix -test ./...`
- Copy golangci config: `$HOME/git/sammcj/mcp-devtools/.golangci.yml`
- Idiomatic Go: explicit error handling, early returns, small interfaces, composition, defer for cleanup, table-driven tests

## Go Testing

- When working with tests in Go, read in `references/go-testing.md` for actionable testing guidelines.
