iris/_examples/structuring/mvc/app/controllers/follower/controller.go

14 lines
202 B
Go
Raw Normal View History

package follower
import (
"github.com/kataras/iris"
)
type Controller struct {
iris.Controller
}
func (c *Controller) GetBy(id int64) {
c.Ctx.Writef("from "+c.Route().Path()+" with ID: %d", id)
}