Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map[K any, V any] interface { Get(K) V GetOk(key K) (V, bool) Set(K, V) Size() int ContainsKey(key K) bool Keys() []K Merge(...Map[K, V]) Map[K, V] SortKeys(f func(x, y K) int) SortStableKeys(f func(x, y K) int) Values() []V Clone() Map[K, V] Remove(key K) MarshalJSON() ([]byte, error) }
Map is a map that keeps ordering insertion.
func NewWithConversionFunc ¶
NewWithConversionFunc creates a map using the given conversion function to convert non-comparable key type to comparable items. The conversion function must be bijective.
Click to show internal directories.
Click to hide internal directories.