mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 10:41:03 +01:00
godoc.go: Run small paragraph
Former-commit-id: 60a5758962ff16af5153f0fdea56b123c0b0e58d
This commit is contained in:
parent
3cf2d6b270
commit
8c147d9d26
4
doc.go
4
doc.go
|
@ -78,12 +78,14 @@ Example code:
|
|||
ctx.HTML(iris.StatusOK, "<h1> Welcome to my page!</h1>")
|
||||
}
|
||||
|
||||
|
||||
Run
|
||||
|
||||
$ go run main.go
|
||||
|
||||
$ 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.
|
||||
The first parameter is the HTTP Method,
|
||||
second parameter is the request path of the route,
|
||||
|
|
Loading…
Reference in New Issue
Block a user