[go-nuts] Some code review

2016-09-07 Thread nakotoffana
I recently decided to make a small framework for my hobby-project needs. Inspired a little bit on revel. I would like to get some advice or criticism about the code. I am a newbie at Go but I want to keep improving This is the main repository of the framework https://github.com/yaimko/yaimko a

[go-nuts] How to get struct of function

2016-07-26 Thread nakotoffana
Lets say an example function like this func (r *Router) Get(path string, controller interface{}) {} And I am calling it this way Route.Get("/", controllers.Test.IsWorking) Refering to this function type Test struct { Name string } func (t Test) IsWorking() { log.Println("hello") } How c