Currently, if you want to change router package you use, all handlers and middlewares must be fixed. So I propose a universal handler type with net/context and path parameter.
Common requirements - net/context - path paramter Example implementation https://godoc.org/github.com/kdy1997/web It's largely inspired by luci-go/server/router package. https://godoc.org/github.com/luci/luci-go/server/router # Extensibility This package provides extensibility by containing net/context. Exmple usecase: luci-go uses net/context as dependency injector to help testing https://godoc.org/github.com/luci/luci-go/common/clock https://godoc.org/github.com/luci/luci-go/common/data/rand/cryptorand https://godoc.org/github.com/luci/luci-go/common/data/rand/mathrand -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.