Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by xyzzy_plugh

17 hours ago

The Go standard library has learned to interpret path variables as well:

https://go.dev/blog/routing-enhancements

1 comment

xyzzy_plugh

Reply

zimpenfish  9 hours ago

To be fair, it's not -quite- as useful - `req.PathValue` only returns `string` and you have to do the conversion to other types yourself which could lead to a faffy mess of code.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities