Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertPanics ¶ added in v0.1.2
func NormalizeDuration ¶ added in v0.0.4
NormalizeDuration normalize duration
func UnsafeToBytes ¶
func UnsafeToString ¶
Types ¶
type Copool ¶
type Copool struct {
// contains filtered or unexported fields
}
type ObjectPool ¶
type ObjectPool[T any] struct { // contains filtered or unexported fields }
ObjectPool with Type
func NewObjectPool ¶
func NewObjectPool[T any](creator func() T) *ObjectPool[T]
func (*ObjectPool[T]) Get ¶
func (p *ObjectPool[T]) Get() T
func (*ObjectPool[T]) Put ¶
func (p *ObjectPool[T]) Put(x T)
type PprofUtils ¶ added in v1.1.1
type PprofUtils struct {
// contains filtered or unexported fields
}
func NewPprofUtils ¶ added in v1.1.1
func NewPprofUtils(profile ProfileType, output string) *PprofUtils
func (*PprofUtils) StartProfile ¶ added in v1.1.1
func (p *PprofUtils) StartProfile()
func (*PprofUtils) StopProfile ¶ added in v1.1.1
func (p *PprofUtils) StopProfile()
type Queue ¶
type Queue[V any] struct { // contains filtered or unexported fields }
Queue represents a single instance of the queue data structure.
func (*Queue[V]) Get ¶ added in v0.1.1
Get returns the element at index i in the queue. If the index is invalid, the call will panic. This method accepts both positive and negative index values. Index 0 refers to the first element, and index -1 refers to the last.
func (*Queue[V]) Pop ¶ added in v0.1.1
func (q *Queue[V]) Pop() V
Remove removes and returns the element from the front of the queue. If the queue is empty, the call will panic.
Click to show internal directories.
Click to hide internal directories.