Overview
Library for building command-line apps in Go, with subcommands, flags and generated help. Used by kubectl, Hugo and the GitHub CLI.
Strengths
- Subcommands and help generated
- Proven in big CLIs
Drawbacks
- Heavy for a tiny script
Best for: Building CLIs in Go
Library for building command-line apps in Go, with subcommands, flags and generated help. Used by kubectl, Hugo and the GitHub CLI.
The official interactive Go introduction: run and edit code in the browser while it walks through syntax, methods, interfaces and concurrency.
Short annotated Go programs, one per topic, from basics to goroutines, channels and testing.
The Go team's guide to writing idiomatic Go: naming, formatting, errors, interfaces and concurrency.