README ¶ lib Pool Pool represents byte buffer pool. Distinct pools may be used for distinct types of byte buffers. Properly determined byte buffer types with their own pools may help reducing memory waste. package main import ( "fmt" "github.com/ds248a/lib/pool" ) func main() { b := pool.Get() b.WriteString("line 1\n") b.Write([]byte("line 2\n")) b.B = append(b.B, "line 3\n"...) fmt.Printf("b.B=%q", b.B) pool.Put(b) } Expand ▾ Collapse ▴ Directories ¶ Show internal Expand all Path Synopsis bytes format logger math osx strconv strings uuid Click to show internal directories. Click to hide internal directories.