package
Version:
v2.1.5
Opens a new window with list of versions in this module.
Published: Feb 28, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
¶
func ConvertFrom(source interface{}, dest interface{}) error
ConvertFrom converts struct which input by mapconv from plain models
func ConvertTo(source interface{}, dest interface{}) error
ConvertTo converts struct which input by mapconv to plain models
type Map map[string]interface{}
Map is wrapper of map[string]interface{}
Get returns map value with dot-separated key
func (m *Map) Set(key string, value interface{})
Set sets map value with dot-separated key
type TagInfo struct {
SourceFields []string
DefaultValue interface{}
OmitEmpty bool
Recursive bool
Squash bool
IsSlice bool
}
TagInfo mapconvタグの情報
ParseMapConvTag mapconvタグを文字列で受け取りパースしてTagInfoを返す
Source Files
¶
Click to show internal directories.
Click to hide internal directories.