Documentation
¶
Index ¶
- type Entry
- type Map
- func (t *Map) Contains(key interface{}) bool
- func (t *Map) ContainsAll(keys []interface{}) bool
- func (t *Map) ContainsAny(keys []interface{}) bool
- func (t *Map) Delete(key interface{}) *Map
- func (t *Map) DeleteAll(keys []interface{}) *Map
- func (t *Map) Empty() bool
- func (t *Map) Entries() []Entry
- func (t *Map) Get(key interface{}) interface{}
- func (t *Map) Head() interface{}
- func (t *Map) Init() *Map
- func (t *Map) Keys() []interface{}
- func (t *Map) Len() int
- func (t *Map) NotEmpty() bool
- func (t *Map) Pop() interface{}
- func (t *Map) Pull() interface{}
- func (t *Map) Put(key interface{}, value interface{}) *Map
- func (t *Map) PutEntries(entries []Entry) *Map
- func (t *Map) String() string
- func (t *Map) Tail() interface{}
- func (t *Map) Values() []interface{}
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct {
Key, Value interface{}
}
Entry represents a map key value pair entry
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
Map is an ordered map with some extra useful methods
func (*Map) ContainsAll ¶
ContainsAll returns true if the map contains all the keys
func (*Map) ContainsAny ¶
ContainsAny returns true if the map contains any of the keys
func (*Map) Get ¶
func (t *Map) Get(key interface{}) interface{}
Get gets and returns the value for the specified search key
func (*Map) Keys ¶
func (t *Map) Keys() []interface{}
Keys creates and returns a slice of all the map keys
func (*Map) Pop ¶
func (t *Map) Pop() interface{}
Pop deletes the last map entry and returns its value
func (*Map) Pull ¶
func (t *Map) Pull() interface{}
Pull deletes the first map entry and returns its value
func (*Map) PutEntries ¶
PutEntries enters all entries into the Map and returns the Map pointer
Click to show internal directories.
Click to hide internal directories.