Documentation ¶ Index ¶ type ChanPool func (p *ChanPool) Get() interface{} func (p *ChanPool) Put(x interface{}) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type ChanPool ¶ type ChanPool struct { Size int //Size pool size New func() interface{} //New create object for pool sync.Mutex // contains filtered or unexported fields } ChanPool pool object func (*ChanPool) Get ¶ func (p *ChanPool) Get() interface{} Get get object from pool func (*ChanPool) Put ¶ func (p *ChanPool) Put(x interface{}) Put put object to pool Source Files ¶ View all Source files pool.go Click to show internal directories. Click to hide internal directories.