mapz

package
v0.0.66 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 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 SortMapByKey added in v0.0.53

func SortMapByKey[Key ordered, Value any](m map[Key]Value) (sorted []struct {
	Key   Key
	Value Value
},
)

Types

This section is empty.

Jump to

Keyboard shortcuts

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