8c3b936c by knightmare

replace filterPos to pos

1 parent 47fc32ba
...@@ -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
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!