Matteo Vaccari
Matteo Vaccari
With the new routing style in go 1.22, declaring http.Handle("GET /", h) generates a conflict with route "/debug/vars" declared in the expvar package. You get an error such as: panic:...
### Go version 1.22.0 ### Output of `go env` in your module/workspace: ```shell GO111MODULE='' GOARCH='amd64' GOBIN='' GOCACHE='/Users/matteo/Library/Caches/go-build' GOENV='/Users/matteo/Library/Application Support/go/env' GOEXE='' GOEXPERIMENT='' GOFLAGS='' GOHOSTARCH='amd64' GOHOSTOS='darwin' GOINSECURE='' GOMODCACHE='/Users/matteo/go/pkg/mod' GONOPROXY='' GONOSUMDB='' GOOS='darwin' GOPATH='/Users/matteo/go'...
What is being fixed - and why? * Fix old-style Java: introduce List.of and Map.of * Organize tests by arrange-act-assert Statement of why it needs fixing: * Avoid make it...