Commit 8c3b936c authored by knightmare's avatar knightmare

replace filterPos to pos

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
p.enableFilter = true p.enableFilter = true
} }
func (p *ControllerRegistor) InsertFilter(pattern string, filterPos int, filter FilterFunc) { func (p *ControllerRegistor) InsertFilter(pattern string, pos int, filter FilterFunc) {
mr := buildFilter(pattern, filter) mr := buildFilter(pattern, filter)
p.filters[filterPos] = append(p.filters[filterPos], mr) p.filters[pos] = append(p.filters[pos], mr)
p.enableFilter = true p.enableFilter = true
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment