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 Other modules containing this package gopkg.in/pelletier/go-toml.v1