News for hackers. Stuff that matters.
Re:Some Go web dev notes by thiht on Monday September 30, 2024 @04:12AM (#41694724)
Chi is amazing. I love the philosophy of extending the stdlib instead of writing an alternative. I try to keep that in mind when writing my own libs or helpers now, and I'm very satisfied with the results.

For example I made a lib to write commands (like cobra or urfave/cli), but based entirely on the `flag` package: https://github.com/Thiht/go-command

Re:Some Go web dev notes by JodieBenitez on Monday September 30, 2024 @07:46AM (#41696065)
Nice CLI lib ! I'm still looking for a Argh or Typer equivalent though.
Re:Some Go web dev notes by rwdf on Monday September 30, 2024 @03:19PM (#41700947)
> For example I made a lib to write commands (like cobra or urfave/cli), but based entirely on the `flag` package: https://github.com/Thiht/go-command

Looks nice! I'd like an easier way of setting both long and short flags for a command, i.e. --verbose and -v should do the same. Using `flag` I have to declare everything twice to achieve this.