Versions in this module Expand all Collapse all v0 v0.9.5 Feb 24, 2024 v0.9.4 Apr 1, 2023 v0.9.3 Jan 28, 2022 Changes in this version + var LocalDate = time.FixedZone("date-local", localOffset) + var LocalDatetime = time.FixedZone("datetime-local", localOffset) + var LocalTime = time.FixedZone("time-local", localOffset) + func PrimitiveDecode(primValue Primitive, v interface{}) error + func Unmarshal(p []byte, v interface{}) error + type Decoder struct + func NewDecoder(r io.Reader) *Decoder + func (dec *Decoder) Decode(v interface{}) (MetaData, error) + type Encoder struct + Indent string + func NewEncoder(w io.Writer) *Encoder + func (enc *Encoder) Encode(v interface{}) error + type Key []string + func (k Key) String() string + type MetaData struct + func Decode(data string, v interface{}) (MetaData, error) + func DecodeFS(fsys fs.FS, fpath string, v interface{}) (MetaData, error) + func DecodeFile(fpath string, v interface{}) (MetaData, error) + func DecodeReader(r io.Reader, v interface{}) (MetaData, error) + func (md *MetaData) IsDefined(key ...string) bool + func (md *MetaData) Keys() []Key + func (md *MetaData) PrimitiveDecode(primValue Primitive, v interface{}) error + func (md *MetaData) Type(key ...string) string + func (md *MetaData) Undecoded() []Key + type ParseError struct + LastKey string + Line int + Message string + func (pe ParseError) Error() string + type Primitive struct + type TextMarshaler encoding.TextMarshaler + type TextUnmarshaler encoding.TextUnmarshaler + type Unmarshaler interface + UnmarshalTOML func(interface{}) error