Documentation ¶
Index ¶
- func Call(fn ...func() error) error
- func Do(fn ...func())
- type Cache
- type CallGroup
- type Map
- func (m *Map) BinaryDecode(r io.Reader) (err error)
- func (m *Map) BinaryEncode(w io.Writer) error
- func (m *Map) Clear()
- func (m *Map) Delete(key interface{})
- func (m *Map) Exists(key interface{}) bool
- func (m *Map) Get(key interface{}) interface{}
- func (m *Map) Increment(key interface{}, val int64) int64
- func (m *Map) KeyValues() map[interface{}]interface{}
- func (m *Map) Keys() []interface{}
- func (m *Map) Pop() (key, value interface{})
- func (m *Map) PopAll() (values map[interface{}]interface{})
- func (m *Map) Random() (key, value interface{})
- func (m *Map) RandomKey() interface{}
- func (m *Map) RandomValue() interface{}
- func (m *Map) Set(key, value interface{})
- func (m *Map) Size() int
- func (m *Map) String() string
- func (m *Map) Strings() []string
- func (m *Map) Values() []interface{}
- func (m *Map) Version() uint64
- type MutexMap
- type Pool
- type Stack
- type Trigger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
A Map is a set of temporary objects that may be individually set, get and deleted.
A Map is safe for use by multiple goroutines simultaneously.
func (*Map) RandomValue ¶
func (m *Map) RandomValue() interface{}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.