We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expected something other than []*toml.TomlTree in the example below:
[]*toml.TomlTree
package main import ( "fmt" "log" toml "github.com/pelletier/go-toml" ) func main() { tml := ` [params] language_tabs = [ { key = "shell", name = "Shell" }, { key = "ruby", name = "Ruby" }, { key = "python", name = "Python" } ] ` tree, err := toml.Load(tml) if err != nil { log.Fatal(err) } // fmt.Println(tree.String()) // Panics! m := tree.ToMap() fmt.Printf("%T\n", m["params"].(map[string]interface{})["language_tabs"]) // => []*toml.TomlTree } ``
The text was updated successfully, but these errors were encountered:
Thank you for the feedback, and sorry for the long wait time! Definitely a bug.
Sorry, something went wrong.
Fixed in #110
No branches or pull requests
Expected something other than
[]*toml.TomlTree
in the example below:The text was updated successfully, but these errors were encountered: