Versions in this module Expand all Collapse all v0 v0.1.1 Apr 28, 2017 Changes in this version + var DefaultConfig = Config + type Config struct + FieldToKey func(typ reflect.Type, field string) string + MissingField func(typ reflect.Type, key string) error + NormFieldName func(typ reflect.Type, keyOrField string) string + func (cfg *Config) Marshal(v interface{}) ([]byte, error) + func (cfg *Config) NewDecoder(r io.Reader) *Decoder + func (cfg *Config) NewEncoder(w io.Writer) *Encoder + func (cfg *Config) Unmarshal(data []byte, v interface{}) error + func (cfg *Config) UnmarshalTable(t *ast.Table, v interface{}) error + type LineError struct + Err error + Line int + StructField string + func (err *LineError) Error() string + type MarshalerRec interface + MarshalTOML func() (interface{}, error) + type UnmarshalerRec interface + UnmarshalTOML func(fn func(interface{}) error) error v0.1.0 Aug 17, 2015 Changes in this version + func Marshal(v interface{}) ([]byte, error) + func Parse(data []byte) (*ast.Table, error) + func Unmarshal(data []byte, v interface{}) error + func UnmarshalTable(t *ast.Table, v interface{}) (err error) + type Decoder struct + func NewDecoder(r io.Reader) *Decoder + func (d *Decoder) Decode(v interface{}) error + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + func (e *Encoder) Encode(v interface{}) error + type Marshaler interface + MarshalTOML func() ([]byte, error) + type Unmarshaler interface + UnmarshalTOML func([]byte) error