maps

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get added in v0.19.0

func Get(input interface{}, fieldName string) interface{}

Get 获取map中的字段,支持嵌套结构获取,例如fieldName.subFieldName.xx 嵌套类型必须是map[string]interface{} 如果字段不存在,返回nil

func Map2Struct

func Map2Struct(input interface{}, output interface{}) error

Map2Struct 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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