mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-18 08:32:40 +08:00
添加接口
This commit is contained in:
@ -1,5 +1,10 @@
|
||||
package pool
|
||||
|
||||
type Pool[T any] interface {
|
||||
Get() (o T)
|
||||
Put(o T)
|
||||
}
|
||||
|
||||
type pool[T any] struct {
|
||||
noCopy struct{}
|
||||
c chan T
|
||||
|
Reference in New Issue
Block a user