replace filterPos to pos
Showing
1 changed file
with
2 additions
and
2 deletions
| ... | @@ -284,9 +284,9 @@ func (p *ControllerRegistor) AddFilter(pattern, action string, filter FilterFunc | ... | @@ -284,9 +284,9 @@ func (p *ControllerRegistor) AddFilter(pattern, action string, filter FilterFunc |
| 284 | p.enableFilter = true | 284 | p.enableFilter = true |
| 285 | } | 285 | } |
| 286 | 286 | ||
| 287 | func (p *ControllerRegistor) InsertFilter(pattern string, filterPos int, filter FilterFunc) { | 287 | func (p *ControllerRegistor) InsertFilter(pattern string, pos int, filter FilterFunc) { |
| 288 | mr := buildFilter(pattern, filter) | 288 | mr := buildFilter(pattern, filter) |
| 289 | p.filters[filterPos] = append(p.filters[filterPos], mr) | 289 | p.filters[pos] = append(p.filters[pos], mr) |
| 290 | p.enableFilter = true | 290 | p.enableFilter = true |
| 291 | } | 291 | } |
| 292 | 292 | ... | ... |
-
Please register or sign in to post a comment