mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 10:27:06 +00:00
16 lines
269 B
Go
16 lines
269 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")
|
|
})
|
|
|
|
app.Run(iris.Addr(":5000"), iris.WithoutVersionChecker)
|
|
}
|