mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 10:41:03 +01:00
5fc24812bc
total refactor of the hero and mvc packages, see README#Next (it's not completed yet) Former-commit-id: b85ae99cbfe5965ba919c1e15cf4989e787982c0
19 lines
393 B
Go
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.
|