iris/_benchmarks/iris-mvc/main.go
Gerasimos (Makis) Maropoulos 5fc24812bc ❤️ awesome and unique features for end-developers are coming...
total refactor of the hero and mvc packages, see README#Next (it's not completed yet)


Former-commit-id: b85ae99cbfe5965ba919c1e15cf4989e787982c0
2020-02-29 14:18:15 +02:00

19 lines
393 B
Go

package main
import (
"github.com/kataras/iris/v12/_benchmarks/iris-mvc/controllers"
"github.com/kataras/iris/v12"
"github.com/kataras/iris/v12/mvc"
)
func main() {
app := iris.New()
mvc.New(app.Party("/api/values/{id}")).
Handle(new(controllers.ValuesController))
app.Listen(":5000")
}
// +2MB/s faster than the previous implementation, 0.4MB/s difference from the raw handlers.