-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
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
Switch to a more up to date TOML library #2089
Comments
Maintainer of https://github.com/pelletier/go-toml here. Let me know if there is anything I can do to help! |
It appears that https://github.com/pelletier/go-toml only does parsing. Encoding would be needed too; unless I'm missing something. |
Not sure what you refer to by encoding, but in the latest revision, you can get a "map of plain Go objects", which is what we need. If it is more "up to date" (whatever that means; I'm guessing supporting more of the TOML spec and not more up to date in tech fashion, although there have been some fishy stuff in what we use now; an os.Exit on error being one I remember). |
Or: Do we ever write TOML? |
https://github.com/spf13/hugo/blob/master/parser/frontmatter.go#L32 Also the next func. |
@mohae go-toml does serialize back to a string, see https://godoc.org/github.com/pelletier/go-toml#TomlTree.ToString |
@pelletier thanks for the info! I missed that. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
https://github.com/pelletier/go-toml seems like a good candidate.
The text was updated successfully, but these errors were encountered: