Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
func Parse(input []byte, output interface{}, format SettingsFormat) error
func Stringify ¶
func Stringify(input interface{}, format SettingsFormat) ([]byte, error)
Types ¶
type KeyValueItem ¶
type KeyValueMap ¶
type KeyValueMap map[string]KeyValueItem
func (KeyValueMap) Delete ¶
func (io KeyValueMap) Delete(key string)
func (KeyValueMap) Has ¶
func (io KeyValueMap) Has(key string) bool
func (KeyValueMap) MethodsMap ¶
func (io KeyValueMap) MethodsMap() map[string]interface{}
func (KeyValueMap) Set ¶
func (io KeyValueMap) Set(key string, value string)
func (KeyValueMap) SortedSlice ¶
func (io KeyValueMap) SortedSlice() []KeyValueItem
type MapIO ¶
func (MapIO) MethodsMap ¶
type SettingsFormat ¶
type SettingsFormat string
const ( FormatJson SettingsFormat = "json" FormatYaml SettingsFormat = "yaml" )
Click to show internal directories.
Click to hide internal directories.