1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 08:32:40 +08:00

添加接口

This commit is contained in:
2022-05-06 15:30:58 +08:00
parent d0e055016b
commit 5bf83cc153
2 changed files with 17 additions and 0 deletions

View File

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