mirror of
https://github.com/fumiama/go-registry.git
synced 2026-06-04 23:40:27 +08:00
12 lines
129 B
Go
12 lines
129 B
Go
package registry
|
|
|
|
import "sync"
|
|
|
|
var pool sync.Pool
|
|
|
|
func init() {
|
|
pool.New = func() interface{} {
|
|
return new(CmdPacket)
|
|
}
|
|
}
|