library: bytes, regexp, regexp/syntax

This commit is contained in:
xushiwei
2024-07-29 16:31:59 +08:00
parent e0e3664fdb
commit 2d5e991eaf
3 changed files with 9 additions and 2 deletions

View File

@@ -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
}