Richard Bucker

Rest APIs in Go

Posted at — Dec 22, 2014

There are a number of 3rd party libs like gorilla and rip. ¬†They offer a regex experience in the REST encapsulation of the handler. But like the other ins I’ve been critical of this too can be performed in your code. The single strongest justification is that the filters are not difficult to add and you own the flexibility where you want it. If you want to add a POST() or GET() middleware handler you can. Simple as that.UPDATE - bone is a very nice little multiplexer. It basically adds Post() to the handle interface. While gorilla has a mux too, bone is considerably smaller. It’s so small that to create a package instead of a gist is a shame.