1
// Copyright 2013 The Go Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
11
// A Pool is a set of temporary objects that may be individually saved and
14
// It is a wrapper around sync.Pool.
17
func (p *Pool) Put(x interface{}) {
18
(*sync.Pool)(p).Put(x)
21
func (p *Pool) Get() interface{} {
22
return (*sync.Pool)(p).Get()