Versions in this module Expand all Collapse all v0 v0.3.1 Dec 23, 2023 v0.3.0 Dec 23, 2023 Changes in this version + var DefaultJSONEncodingCreator = &JSONEncodingCreator + var DefaultTOMLEncodingCreator = &TOMLEncodingCreator + var DefaultYAMLEncodingCreator = &YAMLEncodingCreator + type ConfigFile struct + func New(creator EncodingCreator, path string) *ConfigFile + func (c *ConfigFile) Load(v interface{}) error + func (c *ConfigFile) Save(v interface{}) error + func (c *ConfigFile) SaveJSON(v interface{}) error + type Decoder interface + Decode func(v interface{}) error + type EncodeDecoder interface + func NewEncoding(e Encoder, d Decoder) EncodeDecoder + type Encoder interface + Encode func(v interface{}) error + type Encoding struct + type EncodingCreator interface + Create func(io.ReadWriter) EncodeDecoder + type JSONEncodingCreator struct + func (e *JSONEncodingCreator) Create(rw io.ReadWriter) EncodeDecoder + type TOMLEncodingCreator struct + func (e *TOMLEncodingCreator) Create(rw io.ReadWriter) EncodeDecoder + type YAMLEncodingCreator struct + func (e *YAMLEncodingCreator) Create(rw io.ReadWriter) EncodeDecoder