vmap

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(input any, output any) error

Decode takes an input structure and uses reflection to translate it to the output structure. output must be a pointer to a map or struct. Struct -> Map Struct -> Struct Map -> Struct

func GetKeys

func GetKeys(m map[string]any) (keys []string)

func Merge

func Merge(mapData ...map[string]any) (mapMerge map[string]any)

Merge support multi Map, priority from low to high

func New

func New(safe ...bool) *gmap.Map

New creates and returns an empty hash map. The parameter `safe` is used to specify whether using map in concurrent-safety, which is false in default.

func SortKey

func SortKey(m map[string]any) (keys []string)

SortKey sort by key

Types

type M

type M = map[string]any

type Map

type Map = map[string]any

Jump to

Keyboard shortcuts

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