package
Version:
v0.0.0-...-517d9f4
Opens a new window with list of versions in this module.
Published: Sep 18, 2022
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package map2struct
Time : 2022/8/14 09:22
Author : xushiyin
contact : yuqingxushiyin@gmail.com
type Family struct {
LastName string `mapstructure:"LastName"`
}
type Location struct {
City string `mapstructure:"City"`
}
func PersonMap2Struct(input interface{}) (*Person, error)
func PersonMap2StructWeak(input interface{}) (*Person, error)
type Person2 struct {
Family `mapstructure:"Family,squash"`
Location `mapstructure:"Location,squash"`
FirstName string `mapstructure:"FirstName"`
}
func Person2Map2StructSquash(input interface{}) (*Person2, error)
func Person3Map2StructConf(input interface{}) (*Person3, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.