Documentation
¶
Index ¶
- type Key
- type Map
- func (m *Map) Delete(key string)
- func (m *Map) Get(key string) (value any, ok bool)
- func (m *Map) IndexKey(key string) int
- func (m *Map) Keys() []string
- func (m *Map) Len() int
- func (m *Map) MarshalJSON() ([]byte, error)
- func (m *Map) Push(key Key, value Value)
- func (m *Map) Set(key Key, value Value)
- func (m *Map) UnmarshalJSON(data []byte) error
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
func (*Map) IndexKey ¶
with additional O(n) memory this can be done in O(log n) via binary search, or even O(1) via more advanced data structures. But lets keep it simple for now
func (*Map) MarshalJSON ¶
func (*Map) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.