Very cool! If it's helpful, here's an existing IRC server for Mattermost: https://github.com/42wim/matterircd
Re:Shout: The self-hosted web IRC client
by heavenlyhash on Monday February 01, 2016 @05:06PM
(#11015918)
Toml support in go is... lacking? Did you try 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.
Re:Shout: The self-hosted web IRC client
by scrollaway on Monday February 01, 2016 @05:22PM
(#11016052)
I 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...
Re:Shout: The self-hosted web IRC client
by heavenlyhash on Monday February 01, 2016 @06:24PM
(#11016497)
Ah. 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).
Re:Shout: The self-hosted web IRC client
by scrollaway on Tuesday February 02, 2016 @02:38AM
(#11018087)
Have you seen inline tables? It solves what you mention pretty well, which is why I was looking for it for this project.
Recently I had the need for a better gitter-irc two-way gateway than gitter-irc-bot. Specifically, I wanted to be able to run multiple mirrors off a single bot/account. I started writing a multi-protocol gateway and the goal was to support slack, gitter, mattermost, irc and possibly matrix with a plugin API.
Here's the prototype: https://github.com/jleclanche/gitterway
It's in python. I started rewriting it in Go and then found out toml support in go was lacking, then I sort of gave up... if anyone's interested in picking it up, file an issue on there!