Hacker GitHub

← All repos

alecthomas/kong

View on GitHub ↗ ★ 3,197 Go

Kong is a command-line parser for Go

8 mentions on Hacker News by 8 people: 1 story, 7 comments · first 2020-08-04 · latest 2025-06-19

Mentions per year 8 mentions · busiest year 2025 (5)
20082026
  1. …as the parent project though but I prefer kong in terms of the actual code you need to write. [1] https://github.com/alecthomas/kong
    comment by syvolt · 2025-06-19 · in Fang, the CLI Starter Kit
  2. …extensibility in order to handle every imaginable use-case. 1: https://docs.rs/clap/latest/clap/ 2: https://github.com/alecthomas/kong?tab=readme-ov-file#introd...
  3. Yes, see https://github.com/alecthomas/kong/issues/315 . It may be nontrivial to change.
  4. …a very poor experience, both as a developer and as a user. I've had a much better experience with https://github.com/alecthomas/kong , and I've heard good things about https://github.com/urfave/cli , so I would recommend those over Cobra.
  5. I use Kong https://github.com/alecthomas/kong I does everything, including too complicated options.
  6. …not being in the index, I shall ensure I add it just for you based on this. Done. That repository https://github.com/alecthomas/kong will get picked up when I kick off the indexing again (sometime next week once all the activity dies down)
  7. Yes, though unlike Rust they use reflection: https://github.com/alecthomas/kong (my own)
    comment by alecthomas · 2020-08-04 · in Go vs. Rust: Writing a CLI Tool