************************************/ *********** FLOW CONTROL ***********/ ************************************/ Next should be used only inside middleware. It executes the pending handlers in the chain inside the calling handler. See example in GitHub.
()
| 186 | // It executes the pending handlers in the chain inside the calling handler. |
| 187 | // See example in GitHub. |
| 188 | func (c *Context) Next() { |
| 189 | c.index++ |
| 190 | for c.index < safeInt8(len(c.handlers)) { |
| 191 | if c.handlers[c.index] != nil { |
| 192 | c.handlers[c.index](c) |
| 193 | } |
| 194 | c.index++ |
| 195 | } |
| 196 | } |
| 197 | |
| 198 | // IsAborted returns true if the current context was aborted. |
| 199 | func (c *Context) IsAborted() bool { |