mirror of
https://github.com/kataras/iris.git
synced 2025-12-21 20:07:04 +00:00
godoc.go: Run small paragraph
Former-commit-id: 60a5758962ff16af5153f0fdea56b123c0b0e58d
This commit is contained in:
4
doc.go
4
doc.go
@@ -78,12 +78,14 @@ Example code:
|
|||||||
ctx.HTML(iris.StatusOK, "<h1> Welcome to my page!</h1>")
|
ctx.HTML(iris.StatusOK, "<h1> Welcome to my page!</h1>")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Run
|
||||||
|
|
||||||
$ go run main.go
|
$ go run main.go
|
||||||
|
|
||||||
$ iris run main.go ## enables reload on source code changes.
|
$ iris run main.go ## enables reload on source code changes.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
All HTTP methods are supported, users can register handlers for same paths on different methods.
|
All HTTP methods are supported, users can register handlers for same paths on different methods.
|
||||||
The first parameter is the HTTP Method,
|
The first parameter is the HTTP Method,
|
||||||
second parameter is the request path of the route,
|
second parameter is the request path of the route,
|
||||||
|
|||||||
Reference in New Issue
Block a user