mirror of
https://github.com/kataras/iris.git
synced 2025-01-24 19:21:03 +01:00
6282a71a6f
Read HISTORY.md Former-commit-id: 82df2d266055818ffafe0ba66b58cf4ed9089922
20 lines
386 B
Go
20 lines
386 B
Go
package main
|
|
|
|
import (
|
|
"github.com/kataras/iris"
|
|
)
|
|
|
|
func main() {
|
|
app := iris.New()
|
|
|
|
// [...]
|
|
|
|
// Good when you want to change some of the configuration's field.
|
|
// I use that method :)
|
|
app.Run(iris.Addr(":8080"), iris.WithoutBanner, iris.WithCharset("UTF-8"))
|
|
|
|
// or before run:
|
|
// app.Configure(iris.WithoutBanner, iris.WithCharset("UTF-8"))
|
|
// app.Run(iris.Addr(":8080"))
|
|
}
|