"github.com/gin-gonic/gin"
"github.com/shenyisyn/goft-gin/goft"
type IndexController struct {}
func NewIndexController() *IndexController {
return &IndexController{}
func(this *IndexController) Index(ctx *gin.Context) string {
func(this *IndexController) Name () string {
func(this *IndexController) Build(goft *goft.Goft){
goft.Handle("GET","/",this.Index)
Mount("",NewIndexController()). //挂载控制器