Documentation
¶
Index ¶
- Variables
- func DoBlock(fn func())
- func DoBlock1[T any](fn func() T) T
- func StrOf(s ...string) []string
- type Ctx
- type KV
- type List
- type Map
- func (t *Map[T]) Del(key string)
- func (t *Map[T]) Each(fn func(name string, val T))
- func (t *Map[T]) Get(key string) T
- func (t *Map[T]) Has(key string) bool
- func (t *Map[T]) Keys() []string
- func (t *Map[T]) Load(key string) (T, bool)
- func (t *Map[T]) Map() map[string]T
- func (t *Map[T]) Set(key string, val T)
- type PriorityQueue
- func (pq *PriorityQueue) Head() *PriorityQueueItem
- func (pq PriorityQueue) Len() int
- func (pq PriorityQueue) Less(i, j int) bool
- func (pq *PriorityQueue) Pop() any
- func (pq *PriorityQueue) PopItem() *PriorityQueueItem
- func (pq *PriorityQueue) Push(x any)
- func (pq *PriorityQueue) PushItem(x *PriorityQueueItem)
- func (pq *PriorityQueue) Remove(i int) any
- func (pq PriorityQueue) Swap(i, j int)
- type PriorityQueueItem
- type Queue
- type RwMap
- func (t *RwMap) Del(key string)
- func (t *RwMap) Each(fn func(name string, val any))
- func (t *RwMap) Get(key string) any
- func (t *RwMap) Has(key string) bool
- func (t *RwMap) Keys() []string
- func (t *RwMap) Load(key string) (any, bool)
- func (t *RwMap) Map() map[string]any
- func (t *RwMap) Range(fn func(name string, val any) bool)
- func (t *RwMap) Set(key string, val any)
- type Set
- type SyncMap
- func (t *SyncMap) Delete(key any)
- func (t *SyncMap) Each(fn any) (err error)
- func (t *SyncMap) Get(key any) any
- func (t *SyncMap) Has(key any) (ok bool)
- func (t *SyncMap) Load(key any) (value any, ok bool)
- func (t *SyncMap) LoadAndDelete(key any) (value any, ok bool)
- func (t *SyncMap) Map(fn func(val any) any)
- func (t *SyncMap) MapTo(data any) (err error)
- func (t *SyncMap) Range(f func(key, value any) bool)
- func (t *SyncMap) Set(key, value any)
- type Tuple
- type YamlListType
Constants ¶
This section is empty.
Variables ¶
View Source
var NotFound = new(struct{})
Functions ¶
Types ¶
type PriorityQueue ¶
type PriorityQueue []*PriorityQueueItem
PriorityQueue implements the heap.Interface.
func (*PriorityQueue) Head ¶
func (pq *PriorityQueue) Head() *PriorityQueueItem
Head returns the first item of a PriorityQueue without removing it.
func (PriorityQueue) Less ¶
func (pq PriorityQueue) Less(i, j int) bool
Less is the items less comparator.
func (*PriorityQueue) Pop ¶
func (pq *PriorityQueue) Pop() any
Pop implements the heap.Interface.Pop. Removes and returns element Len() - 1.
func (*PriorityQueue) PopItem ¶
func (pq *PriorityQueue) PopItem() *PriorityQueueItem
func (*PriorityQueue) Push ¶
func (pq *PriorityQueue) Push(x any)
Push implements the heap.Interface.Push. Adds x as element Len().
func (*PriorityQueue) PushItem ¶
func (pq *PriorityQueue) PushItem(x *PriorityQueueItem)
func (*PriorityQueue) Remove ¶
func (pq *PriorityQueue) Remove(i int) any
Remove removes and returns the element at Index i from the PriorityQueue.
func (PriorityQueue) Swap ¶
func (pq PriorityQueue) Swap(i, j int)
Swap exchanges the indexes of the items.
type PriorityQueueItem ¶
type YamlListType ¶
type YamlListType[T any] []T
func (*YamlListType[T]) UnmarshalYAML ¶
func (p *YamlListType[T]) UnmarshalYAML(value *yaml.Node) error
Click to show internal directories.
Click to hide internal directories.