Documentation ¶
Overview ¶
Package encoding is responsible for encoding and decoding of structs. `squash` option assumes that field names are unique in structs, otherwise results are unpredictable
Index ¶
- func FromStringStringMap(tagName string, base interface{}, input map[string]string) (output interface{}, err error)
- func ToStringInterfaceMap(tagName string, input interface{}, properties ...string) (map[string]interface{}, error)
- func ToStringStringMap(tagName string, input interface{}, properties ...string) (map[string]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromStringStringMap ¶
func FromStringStringMap(tagName string, base interface{}, input map[string]string) (output interface{}, err error)
FromStringStringMap decodes input into output with the same type as base. Only fields tagged by tagName get decoded. Optional argument properties specifies fields to decode.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.