mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
837787104b
Former-commit-id: 39d547ecfb1516505a1eb76a12a1f6e9e4111962
24 lines
566 B
Go
24 lines
566 B
Go
package main
|
|
|
|
import (
|
|
"github.com/kataras/iris/v12"
|
|
)
|
|
|
|
func main() {
|
|
app := iris.New()
|
|
app.Get("/", func(ctx iris.Context) {
|
|
ctx.HTML("<b>Hello!</b>")
|
|
})
|
|
// [...]
|
|
|
|
// Good when you want to change some of the configuration's field.
|
|
// Prefix: "With", code editors will help you navigate through all
|
|
// configuration options without even a glitch to the documentation.
|
|
|
|
app.Listen(":8080", iris.WithoutStartupLog, iris.WithCharset("utf-8"))
|
|
|
|
// or before run:
|
|
// app.Configure(iris.WithoutStartupLog, iris.WithCharset("utf-8"))
|
|
// app.Listen(":8080")
|
|
}
|