Hacker News new | ask | show | jobs
by rwdf 624 days ago
I've grown to prefer go-chi over Gin (or Echo), since it's just the standard library with some QoL features on top.
2 comments

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

> 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.

Nice CLI lib ! I'm still looking for a Argh or Typer equivalent though.
I like it, but with the new http.ServeMux rolled out in Go 1.22, is there any use for Chi anymore?
Good question. The middleware stack it provides is nice.