github.com/fumiama/go-registry@v0.2.7/pool.go (about)

     1  package registry
     2  
     3  import "sync"
     4  
     5  var pool sync.Pool
     6  
     7  func init() {
     8  	pool.New = func() interface{} {
     9  		return new(CmdPacket)
    10  	}
    11  }