Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MapStructifier ¶
func MakeMapStructifier ¶
func MakeMapStructifier(t reflect.Type, tag string, initer func(any)) MapStructifier
MakeMapStructifier builds a function which parses a map's string values into a new struct of type t and returns a pointer to it. tag specifies which tag connects struct fields to map keys. MakeMapStructifier panics if it detects an unsupported type (suitable for usage in init() or global vars).
Click to show internal directories.
Click to hide internal directories.