Skip to content

BlueStorm001/bufferPool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

bufferPool

import (
    "fmt"
    "github.com/BlueStorm001/bufferPool"
)
func main() {
    buff :=  bufferPool.NewDefault()
    b := buff.Get()
    //.......
    b.Write([]byte("AAA")).Write([]byte("BBB"))
    //.......
    fmt.Println(b.Bytes())
     //.......
    buff.Put(b)
}