Category: Uncategorized

My first Go application – nowplaying

Posted by – October 21, 2014

I've now completed a Go version of my first Clojure app, called nowplaying. You can view the source code here. The Clojure version is here.

Since Go is more statically-typed, I needed more code to manage parsing JSON and XML feeds. I also had to wrestle with one non-UTF8 XML feed. The most interesting comparison is to view the two files that grab and parse feeds from the 4 radio stations. The Clojure version is 66 lines of code versus 119 lines in Go.