This tiny piece of Go code powers the Golang News account at Twitter.
It checks HackerNews, Reddit and the official Go blog for new content.
$ go build
$ cd plugins/golang_news
$ go build -buildmode=plugin
Add your credential of your personal twitter bot to settings.json
, look at
settings.json.example
for, well, an example.
The settings file is expect to be in the same directory as the executable.
Finally run the binary with the first argument pointing to the plugin (*.so
file):
$ ./golang_news plugins/golang_news/golang_news.so