diff options
Diffstat (limited to 'vendor/github.com/pelletier/go-toml/cmd')
-rw-r--r-- | vendor/github.com/pelletier/go-toml/cmd/test_program.go | 6 | ||||
-rw-r--r-- | vendor/github.com/pelletier/go-toml/cmd/tomljson/main.go | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/vendor/github.com/pelletier/go-toml/cmd/test_program.go b/vendor/github.com/pelletier/go-toml/cmd/test_program.go index 58293446b..73077f614 100644 --- a/vendor/github.com/pelletier/go-toml/cmd/test_program.go +++ b/vendor/github.com/pelletier/go-toml/cmd/test_program.go @@ -41,16 +41,16 @@ func translate(tomlData interface{}) interface{} { typed[k] = translate(v) } return typed - case *toml.TomlTree: + case *toml.Tree: return translate(*orig) - case toml.TomlTree: + case toml.Tree: keys := orig.Keys() typed := make(map[string]interface{}, len(keys)) for _, k := range keys { typed[k] = translate(orig.GetPath([]string{k})) } return typed - case []*toml.TomlTree: + case []*toml.Tree: typed := make([]map[string]interface{}, len(orig)) for i, v := range orig { typed[i] = translate(v).(map[string]interface{}) diff --git a/vendor/github.com/pelletier/go-toml/cmd/tomljson/main.go b/vendor/github.com/pelletier/go-toml/cmd/tomljson/main.go index 7e9dc467e..8bfe46210 100644 --- a/vendor/github.com/pelletier/go-toml/cmd/tomljson/main.go +++ b/vendor/github.com/pelletier/go-toml/cmd/tomljson/main.go @@ -57,7 +57,7 @@ func reader(r io.Reader) (string, error) { return mapToJSON(tree) } -func mapToJSON(tree *toml.TomlTree) (string, error) { +func mapToJSON(tree *toml.Tree) (string, error) { treeMap := tree.ToMap() bytes, err := json.MarshalIndent(treeMap, "", " ") if err != nil { |