News for hackers. Stuff that matters.
Re:GitHub now supports TOML syntax highlighting by leetrout on Monday February 25, 2013 @01:08AM (#5277569)
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

Re:GitHub now supports TOML syntax highlighting by melvinmt on Monday February 25, 2013 @01:59AM (#5277697)

    (*subtree)[keys[len(keys)-1]] = value
This is the first time I see this kind of syntax in Go, what does (*subtree) do?
Re:GitHub now supports TOML syntax highlighting by chc on Monday February 25, 2013 @03:26AM (#5277900)
I believe it means: Dereference the pointer `subtree` and assign `value` to the key `keys[len(keys)-1]` in the map yielded by the dereference.