Awesome Go
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: current. 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

Vulnerability evidence

Status: checked. Checked: 2026-09-30T18:11:16.939Z.

No advisories reported by this check.

Version advisories do not establish whether a vulnerability is reachable in your application.

Vulnerability source

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.

Read this profile as JSON · Use the API or MCP