Source File
bytes.go
Belonging Package
github.com/gookit/goutil/strutil
package strutilimport ()// Buffer wrap and extends the bytes.Buffertype Buffer = byteutil.Buffer// NewBuffer instance, can set init sizefunc ( ...int) *Buffer {if len() > 0 && [0] > 0 {:= &Buffer{}.Grow([0])return}return &Buffer{}}// ByteChanPool struct//// Usage://// bp := strutil.NewByteChanPool(500, 1024, 1024)// buf:=bp.Get()// defer bp.Put(buf)// // use buf do something ...type ByteChanPool = byteutil.ChanPool// NewByteChanPool instancefunc (, , int) *ByteChanPool {return byteutil.NewChanPool(, , )}
![]() |
The pages are generated with Golds v0.8.4. (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. |