Gongular – A new web framework for Go
github.com
github.com
type Injector struct {
values map[reflect.Type]interface{}
customProviders map[reflect.Type]CustomProvideFunction
}My personal litmus test for OSS is to read the test suite.
I mention it because it is something I do frequently, and I do this because the favoriting feature isn't quite right (I want to privately save stories for later and I don't want to be redirected).
Martini had a similar sort of design (and IMO a cleaner source code), but the author decided that reflection and non-idoimatic design was too much of a cost for the HTTP framework in Go. I think 2 years ago when Martini was released people were more open to reflection, but now I'm interested/doubtful if something like this can be accepted.
Funnily enough, I think Gin-Gonic was inspired by Martini, but Gin-Gonic eschewed reflection in favor of performance/idiomatic design. The fact that this project considers Gin Gonic an inspiration is funny.
Martini also relied heavily on DI and reflection for convenience and the author basically conceded that this was not idiomatic.
More like he was bullied into conceding that.
closes tab
> please.. make it stop..
> closes tab
Look at this sorry thread, the usual open source project bashing going on in the Go community, pathetic, but business as usual in the Go community. The Go community is truly irredeemable and one of the most mean spirited and hateful programming community out there.
There's a reason for the negative comments, and it's that the paradigm of this framework runs against what would be considered idiomatic Go. Spring/Angular style DI is one of the things people use Go to avoid. This is like someone making a library to do goto statements in Java (not as bad of course, just pointing out the conflicting paradigms).