Documentation ¶
Index ¶
- type OrderedMap
- func (me *OrderedMap[K, V]) Back() (kv[K, V], bool)
- func (me *OrderedMap[K, V]) Delete(k K)
- func (me *OrderedMap[K, V]) Front() (kv[K, V], bool)
- func (me *OrderedMap[K, V]) Get(k K) (v V, ok bool)
- func (me *OrderedMap[K, V]) Len() int
- func (me *OrderedMap[K, V]) List() []kv[K, V]
- func (me *OrderedMap[K, V]) Map() map[K]V
- func (me *OrderedMap[K, V]) MarshalJSON() ([]byte, error)
- func (me *OrderedMap[K, V]) Next(k K) (kv[K, V], bool)
- func (me *OrderedMap[K, V]) Prev(k K) (kv[K, V], bool)
- func (me *OrderedMap[K, V]) Reset()
- func (me *OrderedMap[K, V]) Set(k K, v V)
- func (me *OrderedMap[K, V]) UnmarshalJSON(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrderedMap ¶
type OrderedMap[K comparable, V any] struct { // contains filtered or unexported fields }
func NewOrderedMap ¶
func NewOrderedMap[K comparable, V any]() *OrderedMap[K, V]
func (*OrderedMap[K, V]) Back ¶ added in v1.1.0
func (me *OrderedMap[K, V]) Back() (kv[K, V], bool)
func (*OrderedMap[K, V]) Delete ¶
func (me *OrderedMap[K, V]) Delete(k K)
func (*OrderedMap[K, V]) Front ¶ added in v1.1.0
func (me *OrderedMap[K, V]) Front() (kv[K, V], bool)
func (*OrderedMap[K, V]) Get ¶
func (me *OrderedMap[K, V]) Get(k K) (v V, ok bool)
func (*OrderedMap[K, V]) Len ¶ added in v1.0.0
func (me *OrderedMap[K, V]) Len() int
func (*OrderedMap[K, V]) List ¶
func (me *OrderedMap[K, V]) List() []kv[K, V]
func (*OrderedMap[K, V]) Map ¶
func (me *OrderedMap[K, V]) Map() map[K]V
func (*OrderedMap[K, V]) MarshalJSON ¶
func (me *OrderedMap[K, V]) MarshalJSON() ([]byte, error)
func (*OrderedMap[K, V]) Next ¶ added in v1.1.0
func (me *OrderedMap[K, V]) Next(k K) (kv[K, V], bool)
func (*OrderedMap[K, V]) Prev ¶ added in v1.1.0
func (me *OrderedMap[K, V]) Prev(k K) (kv[K, V], bool)
func (*OrderedMap[K, V]) Reset ¶
func (me *OrderedMap[K, V]) Reset()
func (*OrderedMap[K, V]) Set ¶
func (me *OrderedMap[K, V]) Set(k K, v V)
func (*OrderedMap[K, V]) UnmarshalJSON ¶
func (me *OrderedMap[K, V]) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.