Skip to content

Commit

Permalink
regexp: use iota instead of hardcoded values for regexType* (#679)
Browse files Browse the repository at this point in the history
* regexp: use iota instead of hardcoded values
  • Loading branch information
michaelgrigoryan25 committed Jun 26, 2022
1 parent 91708ff commit c889844
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions regexp.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ type routeRegexpOptions struct {
type regexpType int

const (
regexpTypePath regexpType = 0
regexpTypeHost regexpType = 1
regexpTypePrefix regexpType = 2
regexpTypeQuery regexpType = 3
regexpTypePath regexpType = iota
regexpTypeHost
regexpTypePrefix
regexpTypeQuery
)

// newRouteRegexp parses a route template and returns a routeRegexp,
Expand Down

0 comments on commit c889844

Please sign in to comment.