mirror of
https://github.com/kataras/iris.git
synced 2026-03-08 09:25:58 +00:00
Nothing serious yet, thinking new features with the team, post some to help us!
Former-commit-id: 5741c47230bd2f3b88bf9e943742418be664cfdd
This commit is contained in:
@@ -6,7 +6,16 @@ import (
|
||||
"github.com/kataras/iris"
|
||||
)
|
||||
|
||||
// Same as `main.go` for go1.8+ but it omits the
|
||||
// `github.com/kataras/iris/context` import path
|
||||
// because of the type alias feature of go 1.9.
|
||||
|
||||
func main() {
|
||||
// The `iris#Default` adds two built'n handlers
|
||||
// that can recover from any http-relative panics
|
||||
// and log the requests to the terminal.
|
||||
//
|
||||
// Use `iris#New` instead.
|
||||
app := iris.Default()
|
||||
|
||||
// Method: GET
|
||||
|
||||
Reference in New Issue
Block a user