Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface {
Set(key, value interface{}) Interface
Get(key interface{}) Result.Interface
Has(key interface{}) Boolean.Interface
Delete(key interface{}) Interface
Len() int
Keys() Array.Interface
Values() Array.Interface
Each(fn func(key, value interface{}) Result.Interface) Result.Interface
IsNull() bool
}
Interface is the public contract of a key→value composite — the sibling of Array. Keys are arbitrary comparable values; values are arbitrary. Fallible lookups return a Result rather than (value, ok) or a bare nil, and presence tests return a Boolean — both in keeping with the go-composites grammar.
Click to show internal directories.
Click to hide internal directories.