rebootx-on-prem icon indicating copy to clipboard operation
rebootx-on-prem copied to clipboard

refactor(http-server-go): use routing enhancements for go 1.22

Open c100k opened this issue 2 years ago • 0 comments

Suggested by @Gosti.

See resource here : https://go.dev/blog/routing-enhancements

https://github.com/gorilla/mux is not needed anymore to read {id} from the path.

That being said, we still need it for the middlewares (router.Use) and CORS (handlers.CORS).

Let's wait. Maybe Go will provide these natively in next versions as well.

c100k avatar Mar 25 '24 16:03 c100k