[go-nuts] Re: net/http: 1.22.0, Enhanced routing, httpmuxgo121

2024-02-11 Thread 'qiulaidongfeng' via golang-nuts
If you want to default GODEBUG=httpmuxgo121=0. One way to do this is to set go1.22.0 on the go line of go.mod, or add a //go:debug httpmuxgo121=0 to the go file of the main package. On Monday, February 12, 2024 at 3:09:38 PM UTC+8 qiulaidongfeng wrote: > Starting with go1.21, GODEBUG is set by d

[go-nuts] Re: net/http: 1.22.0, Enhanced routing, httpmuxgo121

2024-02-11 Thread 'qiulaidongfeng' via golang-nuts
Starting with go1.21, GODEBUG is set by default according to the go line of go.mod. On Monday, February 12, 2024 at 11:47:31 AM UTC+8 xab3r wrote: > Hello there > > I've just tried new routing patterns in Go 1.22.0, and I noticed that I > have to set httpmuxgo121=0 explicitly in order to get it