iris/_examples/structuring/mvc/app/controllers/follower/controller.go
Gerasimos (Makis) Maropoulos cf1e580cde Add two examples for folder structuring as requested at https://github.com/kataras/iris/issues/748
Former-commit-id: 27c97d005d9cbd2309587b11fc9e2bab85870502
2017-10-01 04:31:13 +03:00

14 lines
202 B
Go

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)
}