Versions in this module Expand all Collapse all v0 v0.4.2 Sep 25, 2019 Changes in this version type TomlTree + func (t *TomlTree) GetFloat64(key string, def ...float64) (ret float64) + func (t *TomlTree) GetInt64(key string, def ...int64) (ret int64) + func (t *TomlTree) GetString(key string, def ...string) (ret string) + func (t *TomlTree) GetUint64(key string, def ...uint64) (ret uint64) v0.4.0 Dec 2, 2016 Changes in this version + type NodeFilterFn func(node interface{}) bool + type Position struct + Col int + Line int + func (p Position) Invalid() bool + func (p Position) String() string + type Query struct + func CompileQuery(path string) (*Query, error) + func (q *Query) Execute(tree *TomlTree) *QueryResult + func (q *Query) SetFilter(name string, fn NodeFilterFn) + type QueryResult struct + func (r QueryResult) Positions() []Position + func (r QueryResult) Values() []interface{} + type TomlTree struct + func Load(content string) (tree *TomlTree, err error) + func LoadFile(path string) (tree *TomlTree, err error) + func LoadReader(reader io.Reader) (tree *TomlTree, err error) + func TreeFromMap(m map[string]interface{}) *TomlTree + func (t *TomlTree) Get(key string) interface{} + func (t *TomlTree) GetDefault(key string, def interface{}) interface{} + func (t *TomlTree) GetPath(keys []string) interface{} + func (t *TomlTree) GetPosition(key string) Position + func (t *TomlTree) GetPositionPath(keys []string) Position + func (t *TomlTree) Has(key string) bool + func (t *TomlTree) HasPath(keys []string) bool + func (t *TomlTree) Keys() []string + func (t *TomlTree) Query(query string) (*QueryResult, error) + func (t *TomlTree) Set(key string, value interface{}) + func (t *TomlTree) SetPath(keys []string, value interface{}) + func (t *TomlTree) String() string + func (t *TomlTree) ToMap() map[string]interface{} + func (t *TomlTree) ToString() string