fix indent

This commit is contained in:
thinkerou 2018-08-31 16:52:08 +08:00
parent 6346eddbf2
commit 452a911769

View File

@ -8,8 +8,8 @@ The middleware has two parts:
- part two is what executes on every request. For example, a database middleware you simply inject your "global" database object into the context. Once it's inside the context, you can retrieve it from within other middlewares and your handler furnction. - part two is what executes on every request. For example, a database middleware you simply inject your "global" database object into the context. Once it's inside the context, you can retrieve it from within other middlewares and your handler furnction.
```go ```go
func funcName(params string) gin.HandlerFunc { func funcName(params string) gin.HandlerFunc {
// <--- // <---
// This is part one // This is part one
// ---> // --->
@ -26,8 +26,8 @@ func funcName(params string) gin.HandlerFunc {
c.Set("TestVar", params) c.Set("TestVar", params)
c.Next() c.Next()
} }
} }
``` ```
## Execution process ## Execution process