valyala / fasthttp

Fast HTTP package for Go. Tuned for high performance. Zero memory allocations in hot paths. Up to 10x faster than net/http
MIT License
21.94k stars 1.76k forks source link

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

Closed leonklingele closed 9 months ago

leonklingele commented 1 year ago

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

erikdubbelboer commented 1 year ago

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

leonklingele commented 1 year ago

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

leonklingele commented 9 months ago

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