Documentation ¶
Index ¶
- Constants
- func Marshal(v interface{}) ([]byte, error)
- type Loader
- type Tree
- func (t *Tree) Copy() *Tree
- func (t *Tree) Delete(key string) error
- func (t *Tree) DeletePath(keys []string) error
- func (t *Tree) Get(key string) interface{}
- func (t *Tree) GetPath(keys []string) interface{}
- func (t *Tree) GetSubtreeByPath(keys []string) *Tree
- func (t *Tree) HasPath(keys []string) bool
- func (t *Tree) Keys() []string
- func (t *Tree) Raw() *toml.Tree
- func (t *Tree) Save(path string) (int64, error)
- func (t *Tree) Set(key string, value interface{})
- func (t *Tree) SetPath(keys []string, value interface{})
- func (t *Tree) String() string
- func (t *Tree) ToMap() map[string]interface{}
Constants ¶
View Source
const (
Empty = empty("")
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Loader ¶
Loader represents a source for a toml config.
func FromCommandLine ¶
FromCommandLine creates a TOML source from the output of a shell command and its corresponding args. If the command is empty, an empty config is returned.
type Tree ¶
type Tree toml.Tree
func TreeFromMap ¶
func (*Tree) DeletePath ¶
func (*Tree) GetSubtreeByPath ¶
Click to show internal directories.
Click to hide internal directories.