Skip to content

Commit

Permalink
feat: add WithExcludedPathsRegexs option for aligning (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
justlorain authored Dec 3, 2023
1 parent cf75199 commit 095dd13
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ func WithExcludedPathRegexes(args []string) Option {
}
}

// WithExcludedPathsRegexs customize path's regexes
// NOTE: WithExcludedPathRegexs is exactly same as WithExcludedPathRegexes, this just for aligning with gin
func WithExcludedPathsRegexs(args []string) Option {
return func(o *Options) {
o.ExcludedPathRegexes = NewExcludedPathRegexes(args)
}
}

func WithExcludedPaths(args []string) Option {
return func(o *Options) {
o.ExcludedPaths = NewExcludedPaths(args)
Expand Down

0 comments on commit 095dd13

Please sign in to comment.