mirror of
https://github.com/kataras/iris.git
synced 2025-01-24 11:11:03 +01:00
20 lines
416 B
Go
20 lines
416 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.WithTray, iris.WithCharset("UTF-8"))
|
||
|
|
||
|
// or before run:
|
||
|
// app.Configure(iris.WithoutBanner, iris.WithTray, iris.WithCharset("UTF-8"))
|
||
|
// app.Run(iris.Addr(":8080"))
|
||
|
}
|