Documentation ¶
Index ¶
- Variables
- func ObjOf(s1 interface{}, ss ...interface{}) []interface{}
- func StrOf(s1 string, ss ...string) []string
- func ValueOf(s1 reflect.Value, ss ...reflect.Value) []reflect.Value
- type A
- type CMap
- type Command
- type Commands
- type D
- type Flags
- type Kv
- type M
- type Map
- func (t *Map) Del(key string)
- func (t *Map) Each(fn func(name string, val interface{}))
- func (t *Map) Get(key string) interface{}
- func (t *Map) Has(key string) bool
- func (t *Map) Keys() []string
- func (t *Map) Load(key string) (interface{}, bool)
- func (t *Map) Map() map[string]interface{}
- func (t *Map) Set(key string, val interface{})
- type PriorityQueue
- func (pq *PriorityQueue) Head() *PriorityQueueItem
- func (pq PriorityQueue) Len() int
- func (pq PriorityQueue) Less(i, j int) bool
- func (pq *PriorityQueue) Pop() interface{}
- func (pq *PriorityQueue) PopItem() *PriorityQueueItem
- func (pq *PriorityQueue) Push(x interface{})
- func (pq *PriorityQueue) PushItem(x *PriorityQueueItem)
- func (pq *PriorityQueue) Remove(i int) interface{}
- 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 interface{}))
- func (t *RwMap) Get(key string) interface{}
- func (t *RwMap) Has(key string) bool
- func (t *RwMap) Keys() []string
- func (t *RwMap) Load(key string) (interface{}, bool)
- func (t *RwMap) Map() map[string]interface{}
- func (t *RwMap) Range(fn func(name string, val interface{}) bool)
- func (t *RwMap) Set(key string, val interface{})
- type SMap
- func (t *SMap) Delete(key interface{})
- func (t *SMap) Each(fn interface{}) (err error)
- func (t *SMap) Get(key interface{}) interface{}
- func (t *SMap) Has(key interface{}) (ok bool)
- func (t *SMap) Load(key interface{}) (value interface{}, ok bool)
- func (t *SMap) LoadAndDelete(key interface{}) (value interface{}, ok bool)
- func (t *SMap) Map(fn func(val interface{}) interface{})
- func (t *SMap) MapTo(data interface{}) (err error)
- func (t *SMap) Range(f func(key, value interface{}) bool)
- func (t *SMap) Set(key, value interface{})
- type Set
Constants ¶
This section is empty.
Variables ¶
View Source
var NotFound = new(struct{})
Functions ¶
Types ¶
type A ¶
type A []interface{}
An A is an ordered representation of a BSON array.
Example usage:
typex.A{"bar", "world", 3.14159, typex.D{{"qux", 12345}}}
type Kv ¶
type Kv struct { K string `json:"k"` V interface{} `json:"v"` }
Kv represents a BSON element for a D. It is usually used inside a D.
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() interface{}
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 interface{})
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) interface{}
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 SMap ¶
type SMap struct {
// contains filtered or unexported fields
}
func (*SMap) LoadAndDelete ¶
Click to show internal directories.
Click to hide internal directories.