type RouterConfig struct {
Goft *goft.Goft `inject:"-"`
IndexClass *classes.IndexClass `inject:"-"`
func NewRouterConfig() *RouterConfig {
func (this *RouterConfig) IndexRoutes() interface{} {
this.Goft.Handle("GET", "/a", this.IndexClass.TestA)
this.Goft.Handle("GET", "/b", this.IndexClass.TestA)
this.Goft.Handle("GET", "/void", this.IndexClass.IndexVoid)