type Pool … // NewPool constructs a new Pool. func NewPool() Pool { … } // Get retrieves a Buffer from the pool, creating one if necessary. func (p Pool) Get() *Buffer { … } func (p Pool) put(buf *Buffer) { … }
type Pool … // NewPool constructs a new Pool. func NewPool() Pool { … } // Get retrieves a Buffer from the pool, creating one if necessary. func (p Pool) Get() *Buffer { … } func (p Pool) put(buf *Buffer) { … }