Versions in this module Expand all Collapse all v0 v0.5.0 Mar 2, 2017 Changes in this version type TomlTree + func (t *TomlTree) ToTomlString() (string, error) + func (t *TomlTree) WriteTo(w io.Writer) (int64, error) 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 v0.3.5 Jun 30, 2016 v0.3.4 Apr 22, 2016 v0.3.3 Feb 20, 2016 v0.3.2 Jan 31, 2016 v0.3.1 Dec 1, 2015 v0.3.0 Nov 3, 2015 v0.2.1 Oct 7, 2014 v0.2.0 Jul 9, 2014 v0.1.0 Jul 1, 2013