mapz

package
v0.0.52 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrKeyIsNotFound            = errors.New(`mapz: key is not found`)
	ErrVIsNotPointerOrInterface = errors.New(`mapz: v is not pointer or interface`)
	ErrValueTypeIsNotMatch      = errors.New(`mapz: value type is not match`)
)

Functions

func Get

func Get[Key comparable](m map[Key]any, key Key, v any) error

func SortMapIntKey added in v0.0.52

func SortMapIntKey[V any](m map[int]V) (sorted []struct {
	Key   int
	Value V
},
)

func SortMapStringKey added in v0.0.52

func SortMapStringKey[V any](m map[string]V) (sorted []struct {
	Key   string
	Value V
},
)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL