mapconv

package
v0.0.0-...-dc6ba75 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertFrom

func ConvertFrom(source interface{}, dest interface{}) error

ConvertFrom converts struct which input by mapconv from plain models

func ConvertTo

func ConvertTo(source interface{}, dest interface{}) error

ConvertTo converts struct which input by mapconv to plain models

Types

type Map

type Map map[string]interface{}

Map is wrapper of map[string]interface{}

func (*Map) Get

func (m *Map) Get(key string) (interface{}, error)

Get returns map value with dot-separated key

func (*Map) Map

func (m *Map) Map() map[string]interface{}

Map returns output map

func (*Map) Set

func (m *Map) Set(key string, value interface{})

Set sets map value with dot-separated key

Jump to

Keyboard shortcuts

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