Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpRequest ¶
Credit: github.com/gin-gonic/gin/recovery.go
func GetFunctionName ¶
func IsStateModifyingMethod ¶
func SupportsColoredOutput ¶
Types ¶
type Pool ¶
type Pool[T any] struct { // contains filtered or unexported fields }
A fixed-capacity object pool with a dense stack free-list. Designed to have minimum memory allocation per request
func (*Pool[T]) Acquire ¶
Acquire an index to an available object. Waits when no object is available
func (*Pool[T]) AcquireObject ¶
Sugarcode for calling Pool.Acquire and Pool.Release
func (*Pool[T]) Get ¶
Simply get the reference to an object. Not to be mistaken with Pool.Acquire