Go1.21.0增加了一个clear预定义函数用来做切片和map的clear操作。对于切片,clear函数会将所有元素设置为零值,但保持切片的长度和容量不变。对于map,clear函数会删除所有键值对,得到一个空map。 改变panic(nil)语义 Go1.21.0改变了panic(nil)的语义,使得recover函数在捕获到panic(nil)时不再返回nil,而是返回一个特定...
msg: use req.PathValue instead. - p: ^net.ParseCIDR msg: you should use netip.ParsePrefix unless you really need a *net.IPNet - p: ^net.ParseIP msg: you should use netip.ParseAddr unless you really need a net.IP - p: ^pgtype.NewMap msg: you should use mmdatabase.NewTypeMap...
by adding some debug output, if it uses https://github.com/go-sql-driver/mysql/blob/master/connection.go#L339 ? If the query doesn't contain any parameter, it should use https://golang.org/pkg/database/sql/driver/#Execer or https://golang.org/pkg/database/sql/driver/#ExecerContext...
sessions - Dead simple, highly performant, highly customizable sessions service for go http servers. signedvalue - Signed and timestamped strings compatible with Tornado's create_signed_value, decode_signed_value, and therefore set_secure_cookie and get_secure_cookie. Bot Building Libraries for buil...
go.sum build(flux): upgrade to Flux v0.42.0 Aug 31, 2019 id.go fix(influxdb): use influxdb.Error in ID.Decode May 15, 2019 id_test.go chore(ci): update go-tools Aug 22, 2019 keyvalue_log.go feat(kv): implemented key/value store with end-to-end integration tests Feb 20, 201...