Versions in this module Expand all Collapse all v0 v0.2.0 May 2, 2014 Changes in this version + const BOM + const EOF + const RuneError + var InValidFormat = errors.New("invalid TOML format") + var InternalError = errors.New("internal error") + var InvalidItem = errors.New("invalid Item") + var NotSupported = errors.New("not supported") + var OutOfRange = errors.New("out of range") + var Redeclared = errors.New("duplicate definitionin") + type Item struct + func GenItem(kind Kind) Item + func (i Item) AddTable(tm Toml) error + func (i Item) Len() int + func (i Item) Table(idx int) Toml + func (i Item) TomlArray() TomlArray + func (it Item) Apply(dst interface{}) (count int) + type Kind uint + const Array + const ArrayOfTables + const Boolean + const BooleanArray + const Datetime + const DatetimeArray + const Float + const FloatArray + const Integer + const IntegerArray + const InvalidKind + const String + const StringArray + const TableName + func (k Kind) String() string + type Scanner interface + Eof func() bool + Fetch func(skip bool) string + LastLine func() (int, int, string) + Next func() rune + Rune func() rune + func NewScanner(source []byte) Scanner + type Status int + const SInvalid + const SMaybe + const SNot + const SUnexpected + const SYes + const SYesKeep + func (t Status) String() string + type Token uint + func (t Token) String() string + type TokenHandler func(Token, string) error + type Toml map[string]Item + func LoadFile(path string) (toml Toml, err error) + func New() Toml + func Parse(source []byte) (tm Toml, err error) + func (p Toml) Apply(dst interface{}) (count int) + func (p Toml) Fetch(prefix string) Toml + func (p Toml) String() string + func (p Toml) TableNames() (tableNames []string, arrayOfTablesNames []string) + func (tm Toml) Id() Value + type TomlArray []Toml + func (t TomlArray) Index(idx int) Toml + func (t TomlArray) Len() int + type Value struct + func NewValue(kind Kind) *Value + func (it *Value) Apply(dst interface{}) (count int) + func (p *Value) Add(ai ...interface{}) error + func (p *Value) Boolean() bool + func (p *Value) BooleanArray() []bool + func (p *Value) Comment() string + func (p *Value) Comments() []string + func (p *Value) Datetime() time.Time + func (p *Value) DatetimeArray() []time.Time + func (p *Value) Float() float64 + func (p *Value) FloatArray() []float64 + func (p *Value) Id() int + func (p *Value) Index(idx int) *Value + func (p *Value) Int() int64 + func (p *Value) IntArray() []int64 + func (p *Value) Integer() int + func (p *Value) IntegerArray() []int + func (p *Value) IsValid() bool + func (p *Value) IsValue() bool + func (p *Value) Kind() Kind + func (p *Value) KindIs(kind ...Kind) bool + func (p *Value) Len() int + func (p *Value) Set(x interface{}) error + func (p *Value) SetAs(s string, kind Kind) (err error) + func (p *Value) SetComment(s string) + func (p *Value) SetComments(as []string) + func (p *Value) String() string + func (p *Value) StringArray() []string + func (p *Value) UInt() uint64 + func (p *Value) UIntArray() []uint64 + func (p *Value) UInteger() uint + func (p *Value) UIntegerArray() []uint