3 ms·
Toml support in go is... lacking? Did you try https://github.com/BurntSushi/toml https://github.com/BurntSushi/toml ? That author also wrote a test suite in g
by heavenlyhash 11y ago
Toml support in go is... lacking? Did you try https://github.com/BurntSushi/toml https://github.com/BurntSushi/toml ?
That author also wrote a test suite in go that compares all the other toml implementations for interoperability. I'd say it's pretty high quality.
- scrollaway 11y agoI did! I should have said it's incomplete. I ran across #70[1] which is kind of really needed for the config structure I had in mind. After that I just went back to working on other stuff... [1] https://github.com/BurntSushi/toml/issues/70 https://github.com/BurntSushi/toml/issues/70
- heavenlyhash 11y agoAh. Bummer. Interesting to know, though. I'm kind of un-bullish on toml in general, sadly. I tried toml in a couple of projects, and found for structures nested beyond a certain level, it doesn't really seem all that simple anymore. I ended up going back to json or yaml (only with a parser that doesn't implement most of the fancy features of yaml, for conservation-of-sanity reasons, of course).
- scrollaway 11y agoHave you seen inline tables? It solves what you mention pretty well, which is why I was looking for it for this project.