mirror of
https://github.com/fumiama/orbyte.git
synced 2026-06-05 02:00:30 +08:00
10 lines
186 B
Go
10 lines
186 B
Go
package orbyte
|
|
|
|
// Pooler connects to a user-defined struct.
|
|
type Pooler[T any] interface {
|
|
New(config any, pooled T) T
|
|
Parse(obj any, pooled T) T
|
|
Reset(item *T)
|
|
Copy(dst, src *T)
|
|
}
|