The Go standard library has learned to interpret path variables as well:
https://go.dev/blog/routing-enhancements