github.com/naoina/kocha@v0.7.1-0.20171129072645-78c7a531f799/cmd/kocha-new/skeleton/new/app/controller/root.go.tmpl (about)

     1  package controller
     2  
     3  import (
     4  	"github.com/naoina/kocha"
     5  )
     6  
     7  type Root struct {
     8  	*kocha.DefaultController
     9  }
    10  
    11  func (r *Root) GET(c *kocha.Context) error {
    12  	return c.Render(map[string]interface{}{
    13  		"ControllerName": "Root",
    14  	})
    15  }