fasthttp icon indicating copy to clipboard operation
fasthttp copied to clipboard

Copy maps using Go 1.21's new "maps" package

Open leonklingele opened this issue 2 years ago • 2 comments

https://pkg.go.dev/maps#Copy

For example this should be adapted once Go 1.21 drops: https://github.com/valyala/fasthttp/pull/1565/files

leonklingele avatar Aug 01 '23 10:08 leonklingele

We do support a couple of older versions so we'll have to wait a bit before we can use this.

erikdubbelboer avatar Aug 01 '23 16:08 erikdubbelboer

Let’s just use Go build tags to conditionally use this for Go 1.21+

leonklingele avatar Aug 01 '23 18:08 leonklingele

https://github.com/valyala/fasthttp/pull/1648#issuecomment-1970676759

leonklingele avatar Feb 29 '24 08:02 leonklingele