mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 10:27:06 +00:00
15 lines
240 B
Go
15 lines
240 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"))
|
|
}
|