stl

package
v0.0.0-...-9ae062e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2020 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewArray

func NewArray(capacity int) []interface{}

func NewMap

func NewMap() map[string]interface{}

Types

type Array

type Array = []interface{}

type Dictionary

type Dictionary struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewDictionary

func NewDictionary() *Dictionary

func NewDictionaryRaw

func NewDictionaryRaw(raw map[string]interface{}) *Dictionary

func (*Dictionary) Add

func (d *Dictionary) Add(key string, value interface{}) bool

func (*Dictionary) Clear

func (d *Dictionary) Clear()

func (*Dictionary) ContainsKey

func (d *Dictionary) ContainsKey(key string) bool

func (*Dictionary) ContainsValue

func (d *Dictionary) ContainsValue(value interface{}) bool

func (*Dictionary) ForEach

func (d *Dictionary) ForEach(fun func(string, interface{}))

func (*Dictionary) Get

func (d *Dictionary) Get(key string) (interface{}, bool)

func (*Dictionary) KeyValuePairs

func (d *Dictionary) KeyValuePairs() map[string]interface{}

func (*Dictionary) KeyValueStrings

func (d *Dictionary) KeyValueStrings() map[string]string

func (*Dictionary) Len

func (d *Dictionary) Len() int

func (*Dictionary) LoadJson

func (d *Dictionary) LoadJson(s string) error

func (*Dictionary) Raw

func (d *Dictionary) Raw() map[string]interface{}

func (*Dictionary) Remove

func (d *Dictionary) Remove(key string) bool

func (*Dictionary) Set

func (d *Dictionary) Set(key string, value interface{})

func (*Dictionary) ToJson

func (d *Dictionary) ToJson() (string, error)

type HashSet

type HashSet struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewHashSet

func NewHashSet() *HashSet

func NewHashSetRaw

func NewHashSetRaw(raw []interface{}) *HashSet

func (*HashSet) Add

func (h *HashSet) Add(item interface{}) bool

func (*HashSet) Clear

func (h *HashSet) Clear()

func (*HashSet) Clone

func (h *HashSet) Clone() *HashSet

func (*HashSet) Contains

func (h *HashSet) Contains(item interface{}) bool

func (*HashSet) Except

func (h *HashSet) Except(another *HashSet) *HashSet

func (*HashSet) ExceptWith

func (h *HashSet) ExceptWith(another *HashSet)

func (*HashSet) ForEach

func (h *HashSet) ForEach(fun func(interface{}))

func (*HashSet) Intersect

func (h *HashSet) Intersect(another *HashSet) *HashSet

func (*HashSet) IntersectWith

func (h *HashSet) IntersectWith(another *HashSet)

func (*HashSet) IsSubset

func (h *HashSet) IsSubset(another *HashSet) bool

func (*HashSet) IsSuperset

func (h *HashSet) IsSuperset(another *HashSet) bool

func (*HashSet) Items

func (h *HashSet) Items() []interface{}

func (*HashSet) Len

func (h *HashSet) Len() int

func (*HashSet) Remove

func (h *HashSet) Remove(item interface{}) bool

func (*HashSet) Union

func (h *HashSet) Union(another *HashSet) *HashSet

func (*HashSet) UnionWith

func (h *HashSet) UnionWith(another *HashSet)

type HashTable

type HashTable struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewHashTable

func NewHashTable() *HashTable

func NewHashTableRaw

func NewHashTableRaw(raw map[interface{}]interface{}) *HashTable

func (*HashTable) Add

func (h *HashTable) Add(key interface{}, value interface{}) bool

func (*HashTable) Clear

func (h *HashTable) Clear()

func (*HashTable) ContainsKey

func (h *HashTable) ContainsKey(key interface{}) bool

func (*HashTable) ContainsValue

func (h *HashTable) ContainsValue(value interface{}) bool

func (*HashTable) ForEach

func (h *HashTable) ForEach(fun func(interface{}, interface{}))

func (*HashTable) Get

func (h *HashTable) Get(key interface{}) (interface{}, bool)

func (*HashTable) KeyValuePairs

func (h *HashTable) KeyValuePairs() map[interface{}]interface{}

func (*HashTable) Len

func (h *HashTable) Len() int

func (*HashTable) Raw

func (h *HashTable) Raw() map[interface{}]interface{}

func (*HashTable) Remove

func (h *HashTable) Remove(key interface{}) bool

func (*HashTable) Set

func (h *HashTable) Set(key interface{}, value interface{})

type List

type List struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewList

func NewList(capacity int) *List

func NewListRaw

func NewListRaw(raw []interface{}) *List

func (*List) Add

func (l *List) Add(item interface{})

func (*List) Capacity

func (l *List) Capacity() int

func (*List) Clear

func (l *List) Clear()

func (*List) Contains

func (l *List) Contains(item interface{}) bool

func (*List) ForEach

func (l *List) ForEach(fun func(interface{}))

func (*List) Get

func (l *List) Get(index int) (interface{}, error)

func (*List) IndexOf

func (l *List) IndexOf(item interface{}) int

func (*List) Insert

func (l *List) Insert(index int, item interface{}) error

func (*List) Items

func (l *List) Items() []interface{}

func (*List) Len

func (l *List) Len() int

func (*List) LoadJson

func (l *List) LoadJson(s string) error

func (*List) Raw

func (l *List) Raw() []interface{}

func (*List) Remove

func (l *List) Remove(item interface{}) bool

func (*List) RemoveAt

func (l *List) RemoveAt(index int) error

func (*List) Set

func (l *List) Set(index int, item interface{}) error

func (*List) ToJson

func (l *List) ToJson() (string, error)

type Map

type Map = map[string]interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL