diff options
author | Niall Sheridan <nsheridan@gmail.com> | 2017-02-12 22:24:33 +0000 |
---|---|---|
committer | Niall Sheridan <nsheridan@gmail.com> | 2017-02-12 22:24:33 +0000 |
commit | ba4840c52becf73c2749c9ef0f2f09ed0b9d5c7f (patch) | |
tree | 61b839884d66c9dd8269e26117aa4e4c995ad119 /vendor/github.com/pelletier/go-toml/doc.go | |
parent | 6e00d0000e54f21a4a393e67fd914bda4d394f4a (diff) |
Update dependencies
Diffstat (limited to 'vendor/github.com/pelletier/go-toml/doc.go')
-rw-r--r-- | vendor/github.com/pelletier/go-toml/doc.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/github.com/pelletier/go-toml/doc.go b/vendor/github.com/pelletier/go-toml/doc.go index c8c9add..9156b73 100644 --- a/vendor/github.com/pelletier/go-toml/doc.go +++ b/vendor/github.com/pelletier/go-toml/doc.go @@ -22,8 +22,8 @@ // After parsing TOML data with Load() or LoadFile(), use the Has() and Get() // methods on the returned TomlTree, to find your way through the document data. // -// if tree.Has('foo') { -// fmt.Prinln("foo is: %v", tree.Get('foo')) +// if tree.Has("foo") { +// fmt.Println("foo is:", tree.Get("foo")) // } // // Working with Paths @@ -44,10 +44,10 @@ // it avoids having to parse the passed key for '.' delimiters. // // // looks for a key named 'baz', within struct 'bar', within struct 'foo' -// tree.HasPath(string{}{"foo","bar","baz"}) +// tree.HasPath([]string{"foo","bar","baz"}) // // // returns the key at this path, if it is there -// tree.GetPath(string{}{"foo","bar","baz"}) +// tree.GetPath([]string{"foo","bar","baz"}) // // Note that this is distinct from the heavyweight query syntax supported by // TomlTree.Query() and the Query() struct (see below). |