mirror of
https://github.com/kataras/iris.git
synced 2025-12-20 03:17:04 +00:00
fix some typos
Former-commit-id: 338c7421e2cd49f558cf09d194fe42c4db701be1
This commit is contained in:
4
doc.go
4
doc.go
@@ -71,7 +71,7 @@ Example code:
|
||||
// Reload the templates on each request (development mode).
|
||||
app.RegisterView(iris.HTML("./views", ".html").Reload(true))
|
||||
|
||||
// Regster custom handler for specific http errors.
|
||||
// Register custom handler for specific http errors.
|
||||
app.OnErrorCode(iris.StatusInternalServerError, func(ctx context.Context) {
|
||||
// .Values are used to communicate between handlers, middleware.
|
||||
errMessage := ctx.Values().GetString("error")
|
||||
@@ -748,7 +748,7 @@ Example Code
|
||||
|
||||
// Get serves
|
||||
// Method: GET
|
||||
// Resource: http://context:8080/ping
|
||||
// Resource: http://localhost:8080/ping
|
||||
func (c *PingController) Get() {
|
||||
c.Ctx.WriteString("pong")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user