mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
Also disable version updater on Iris benchmark source code files. It may runs ever faster than before if you started the benchmarks immediately after the banner 👍
Former-commit-id: a55dc1e0b658d7386229c32ba6953b1ea60f2872
18 lines
370 B
Go
18 lines
370 B
Go
package main
|
|
|
|
import (
|
|
"github.com/kataras/iris"
|
|
"github.com/kataras/iris/context"
|
|
)
|
|
|
|
func main() {
|
|
app := iris.New()
|
|
app.Get("/api/values/{id}", func(ctx context.Context) {
|
|
ctx.WriteString("value")
|
|
})
|
|
|
|
// 24 August 2017: Iris has a built'n version updater but we don't need it
|
|
// when benchmarking...
|
|
app.Run(iris.Addr(":5000"), iris.WithoutVersionChecker)
|
|
}
|