Update godoc
parent
658149a6ff
commit
f632b41f6a
|
@ -14,7 +14,9 @@ func NewBytes(max int) *Bytes {
|
|||
}
|
||||
}
|
||||
|
||||
// Get returns a byte slice size with at least sz capacity.
|
||||
// Get returns a byte slice size with at least sz capacity. Items
|
||||
// returned may not be in the zero state and should be reset by the
|
||||
// caller.
|
||||
func (p *Bytes) Get(sz int) []byte {
|
||||
var c []byte
|
||||
select {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package pool
|
||||
|
||||
// Generic is a pool of byte slices that can be re-used. Slices in
|
||||
// Generic is a pool of types that can be re-used. Items in
|
||||
// this pool will not be garbage collected when not in use.
|
||||
type Generic struct {
|
||||
pool chan interface{}
|
||||
|
|
Loading…
Reference in New Issue