package pool

Import Path
	go.uber.org/zap/internal/pool (on go.dev)

Dependency Relation
	imports one package, and imported by 4 packages

Involved Source Files Package pool provides internal pool utilities.
Package-Level Type Names (only one, which is exported)
/* sort exporteds by: | */
Type Parameters: T: any A Pool is a generic wrapper around [sync.Pool] to provide strongly-typed object pooling. Note that SA6002 (ref: https://staticcheck.io/docs/checks/#SA6002) will not be detected, so all internal pool use must take care to only store pointer types. Get gets a T from the pool, or creates a new one if the pool is empty. Put returns x into the pool. func New[T](fn func() T) *Pool[T]
Package-Level Functions (only one, which is exported)
Type Parameters: T: any New returns a new [Pool] for T, and will use fn to construct new Ts when the pool is empty.