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 ¶
type BufferFactoryMethod ¶
Factory is a function to create new connections.
type Pool ¶
type Pool[T any] struct { Items chan T Factory func() T Close func(T) }
func NewBufferPool ¶
func NewBufferPool(initialCap, maxCap int, factory BufferFactoryMethod, close BufferCloseMethod) (*Pool[*bytes.Buffer], error)
Click to show internal directories.
Click to hide internal directories.