1 2 3 4 5 6 7 8 9 10 11 12
package object import ( "bufio" "sync" ) var bufPool = sync.Pool{ New: func() interface{} { return bufio.NewReader(nil) }, }