Documentation ¶
Index ¶
- type OrderedMap
- func (m *OrderedMap[K, V]) ApplyTo(to *OrderedMap[K, V])
- func (m *OrderedMap[K, V]) Back() (pair[K, V], bool)
- func (m *OrderedMap[K, V]) Contains(key K) bool
- func (m *OrderedMap[K, V]) CopyFrom(from *OrderedMap[K, V])
- func (m *OrderedMap[K, V]) Delete(k K)
- func (m *OrderedMap[K, V]) Front() (pair[K, V], bool)
- func (m *OrderedMap[K, V]) Get(k K) (v V, ok bool)
- func (m *OrderedMap[K, V]) GoString() string
- func (m *OrderedMap[K, V]) InsertAfter(key K, value V)
- func (m *OrderedMap[K, V]) InsertBefore(key K, value V)
- func (m *OrderedMap[K, V]) Keys() (keys []K)
- func (m *OrderedMap[K, V]) Len() int
- func (m *OrderedMap[K, V]) List() []pair[K, V]
- func (m *OrderedMap[K, V]) Map() map[K]V
- func (m *OrderedMap[K, V]) MarshalJSON() ([]byte, error)
- func (m *OrderedMap[K, V]) Next(k K) (pair[K, V], bool)
- func (m *OrderedMap[K, V]) Prev(k K) (pair[K, V], bool)
- func (m *OrderedMap[K, V]) Reset()
- func (m *OrderedMap[K, V]) Set(k K, v V)
- func (m *OrderedMap[K, V]) String() string
- func (m *OrderedMap[K, V]) UnmarshalJSON(b []byte) error
- func (m *OrderedMap[K, V]) Update(k K, v V)
- func (m *OrderedMap[K, V]) Values() (values []V)
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 New ¶
func New[K comparable, V any](k K, v V) (m *OrderedMap[K, V])
func (*OrderedMap[K, V]) ApplyTo ¶
func (m *OrderedMap[K, V]) ApplyTo(to *OrderedMap[K, V])
func (*OrderedMap[K, V]) Back ¶
func (m *OrderedMap[K, V]) Back() (pair[K, V], bool)
func (*OrderedMap[K, V]) Contains ¶
func (m *OrderedMap[K, V]) Contains(key K) bool
func (*OrderedMap[K, V]) CopyFrom ¶
func (m *OrderedMap[K, V]) CopyFrom(from *OrderedMap[K, V])
func (*OrderedMap[K, V]) Delete ¶
func (m *OrderedMap[K, V]) Delete(k K)
func (*OrderedMap[K, V]) Front ¶
func (m *OrderedMap[K, V]) Front() (pair[K, V], bool)
func (*OrderedMap[K, V]) Get ¶
func (m *OrderedMap[K, V]) Get(k K) (v V, ok bool)
func (*OrderedMap[K, V]) GoString ¶
func (m *OrderedMap[K, V]) GoString() string
func (*OrderedMap[K, V]) InsertAfter ¶
func (m *OrderedMap[K, V]) InsertAfter(key K, value V)
func (*OrderedMap[K, V]) InsertBefore ¶
func (m *OrderedMap[K, V]) InsertBefore(key K, value V)
func (*OrderedMap[K, V]) Keys ¶
func (m *OrderedMap[K, V]) Keys() (keys []K)
func (*OrderedMap[K, V]) Len ¶
func (m *OrderedMap[K, V]) Len() int
func (*OrderedMap[K, V]) List ¶
func (m *OrderedMap[K, V]) List() []pair[K, V]
func (*OrderedMap[K, V]) Map ¶
func (m *OrderedMap[K, V]) Map() map[K]V
func (*OrderedMap[K, V]) MarshalJSON ¶
func (m *OrderedMap[K, V]) MarshalJSON() ([]byte, error)
func (*OrderedMap[K, V]) Next ¶
func (m *OrderedMap[K, V]) Next(k K) (pair[K, V], bool)
func (*OrderedMap[K, V]) Prev ¶
func (m *OrderedMap[K, V]) Prev(k K) (pair[K, V], bool)
func (*OrderedMap[K, V]) Reset ¶
func (m *OrderedMap[K, V]) Reset()
func (*OrderedMap[K, V]) Set ¶
func (m *OrderedMap[K, V]) Set(k K, v V)
func (*OrderedMap[K, V]) String ¶
func (m *OrderedMap[K, V]) String() string
func (*OrderedMap[K, V]) UnmarshalJSON ¶
func (m *OrderedMap[K, V]) UnmarshalJSON(b []byte) error
func (*OrderedMap[K, V]) Update ¶
func (m *OrderedMap[K, V]) Update(k K, v V)
func (*OrderedMap[K, V]) Values ¶
func (m *OrderedMap[K, V]) Values() (values []V)
Click to show internal directories.
Click to hide internal directories.