Controllers and Views in Go
calhoun.io
calhoun.io
> The first thing we are going to look at is what we need form our base controller
from
> This example is using httprouter, as this is my go to router in Go
go-to
> applicatoin
application
From my perspective, some things are more verbose and others more annoying at first, but overall I have come to love it. I couldn't really pinpoint a specific reason why, but I simply enjoy it.
There's little point in trying to directly compare the two, they are two very different languages. Knowing both leaves you well-equipped to handle a wider range of projects. More tools in the toolbox.
Which is to say that it's scripting language esque. I speak from experience when I say that going from Python to Go was relatively painless and I'm just getting into Ruby and it feels equally verbose to both Python and Go.
Probably the only area where "less lines of code" comes into play is error handling, and there are very easy, clean ways to do that in Go as well.