4 ms·
Very entertaining looking at all the libs that have popped up to support TOML. Has anyone looked at the Go version? For all the Go examples I've looked at (mos
by leetrout 14y ago
Very entertaining looking at all the libs that have popped up to support TOML.
Has anyone looked at the Go version? For all the Go examples I've looked at (mostly networking) they are mostly short and easy to follow. I was shocked at how much code the author wrote.
https://github.com/pelletier/go-toml/tree/master/src/toml https://github.com/pelletier/go-toml/tree/master/src/toml
- melvinmt 14y ago(*subtree)[keys[len(keys)-1]] = value This is the first time I see this kind of syntax in Go, what does (*subtree) do?
- deleted 14y ago[deleted]
- chc 14y agoI believe it means: Dereference the pointer `subtree` and assign `value` to the key `keys[len(keys)-1]` in the map yielded by the dereference.