Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BackupTagName = "cfg"
BackupTagName is the tag name used if tagname not found in the struct tags.
Functions ¶
func LoadReaderWithDecoder ¶
LoadReaderWithDecoder will decode input in `r` into `to` by using `decoder`.
func MapDecoder ¶
MapDecoder implements the reformat package, it exposes functionality to convert an arbitrary map[string]interface{} into a native Go structure with given tag name.
Types ¶
type Decoder ¶
Decoder is a interface that will decode reader `r` into `to`.
`to` will already be pointer to struct, so no need to further prepare it for decoding.
Click to show internal directories.
Click to hide internal directories.