library: bytes, regexp, regexp/syntax
This commit is contained in:
@@ -24,6 +24,10 @@ type Pool struct {
|
||||
func (p *Pool) Put(x any) {
|
||||
}
|
||||
|
||||
// TODO(xsw):
|
||||
func (p *Pool) Get() any {
|
||||
return p.New()
|
||||
if p.New != nil {
|
||||
return p.New()
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user