map_x

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IntMap

func IntMap(in interface{}) (m map[string]interface{})

func MapTo

func MapTo(m map[string]interface{}, obj interface{}) error

MapTo scans map[string]interface{} to set struct values Deprecated: now use map https://github.com/mitchellh/mapstructure instead

func SetField

func SetField(obj interface{}, name string, value interface{}) error

SetField scans map[string]interface{} to set struct values Deprecated: now use map https://github.com/mitchellh/mapstructure instead

func ToMap

func ToMap(data interface{}) (dataMap map[string]interface{})

ToMap scans struct to create map[string]interface{} Deprecated: now use map https://github.com/mitchellh/mapstructure instead

Types

This section is empty.

Jump to

Keyboard shortcuts

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