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 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.
 Click to show internal directories. 
   Click to hide internal directories.