News for hackers. Stuff that matters.
Re:Diving into Go by building a CLI application by sagichmal on Wednesday May 27, 2020 @09:17AM (#23322674)
Cobra is actually probably the worst CLI package to choose, because it encourages/forces you into a globals-based architecture.

https://pkg.go.dev/github.com/peterbourgon/ff/v3/ffcli is one that I've been using recently, which has been a lot nicer.

Re:Diving into Go by building a CLI application by hunal on Wednesday June 03, 2020 @06:45PM (#23409854)
can you please elaborate what is "globals-based architecture" and its disadvantages?