Choose a package
Kong
github.com/alecthomas/kong
CLI parsing from Go structs and field tags
Reviewed 2026-09-30 · Package source
Recorded facts
Metadata fetched: 2026-09-30T18:11:16.939Z · Freshness: stale. This is a dated snapshot; check the linked sources before adopting a package.
- Version
- v1.16.1
- Minimum Go version
- 1.20
- Licenses
- MIT
- Import path
- github.com/alecthomas/kong
- Capabilities
- subcommands, flags, environment
- Dependencies recorded
- 3
- Metadata source 1: https://proxy.golang.org/github.com/alecthomas/kong/@latest
- Metadata source 2: https://proxy.golang.org/github.com/alecthomas/kong/@v/v1.16.1.mod
- Metadata source 3: https://api.deps.dev/v3/systems/go/packages/github.com%2Falecthomas%2Fkong/versions/v1.16.1
Vulnerability evidence
Status: unknown. Checked: 2026-09-30T18:11:16.939Z.
Vulnerability evidence is unavailable; absence of data does not mean no vulnerabilities.
Version advisories do not establish whether a vulnerability is reachable in your application.
Vulnerability sourceAdvisory evidence is older than 30 days; retained IDs are historical observations.
Tradeoffs
- Struct tags define the CLI, which may be less explicit than command constructors.
Install and import
go get github.com/alecthomas/[email protected]import "github.com/alecthomas/kong"
Authored example
No authored example is available for this package. Example verification is unknown.