Source File
server.go
Belonging Package
github.com/imroc/req/v3
package reqimportconst copyBufPoolSize = 32 * 1024var copyBufPool = sync.Pool{New: func() any { return new([copyBufPoolSize]byte) }}func getCopyBuf() []byte {return copyBufPool.Get().(*[copyBufPoolSize]byte)[:]}func putCopyBuf( []byte) {if len() != copyBufPoolSize {panic("trying to put back buffer of the wrong size in the copyBufPool")}copyBufPool.Put((*[copyBufPoolSize]byte)())}
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |