That being said, someone said "screw that" and built Buffalo https://gobuffalo.io/en which is as close as you can get in Golang at the moment.
I mean you can, but "go advocates", would crap on your work with an endless litany of articles about why whatever you wrote shouldn't be used because it's not the "go way". Remember Martini? That's right you don't.
Fortunately for Go, the biggest pain in the ass when it comes to web development is kind of a solved problem with the use of JSON support in SQL Dbs. All you have to do then is un-serialize directly from the DB, which helps getting rid of ORM when building object graphs.
Buffalo uses code generation sure, but it doesn't make an extensive use of interface {} like Martini did, thus can't really be compared to Rails in terms of polymorphism.