Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSystemInTestMode ¶
func IsSystemInTestMode() bool
IsSystemInTestMode checks if the system is running for tests.
func StringInSlice ¶
StringInSlice checks if the given string is in the given list of strings
Types ¶
type BufferCloseMethod ¶ added in v0.16.7
type BufferFactoryMethod ¶ added in v0.16.7
Factory is a function to create new connections.
type Pool ¶ added in v0.16.7
type Pool[T any] struct { Items chan T Factory func() T Close func(T) AfterPut func(T) }
func NewBufferPool ¶ added in v0.16.7
func NewBufferPool(initialCap, maxCap int, factory BufferFactoryMethod, close BufferCloseMethod) (*Pool[*bytes.Buffer], error)
Click to show internal directories.
Click to hide internal directories.