We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f253ff8 + e91d315 commit 89aa984Copy full SHA for 89aa984
rest/router_benchmark_test.go
@@ -109,7 +109,7 @@ func BenchmarkRegExpLoop(b *testing.B) {
109
if err != nil {
110
panic(err)
111
}
112
- routeRegexps := []regexp.Regexp{}
+ routeRegexps := []*regexp.Regexp{}
113
for _, route := range routes {
114
115
// generate the regexp string
@@ -123,7 +123,7 @@ func BenchmarkRegExpLoop(b *testing.B) {
123
124
125
126
- routeRegexps = append(routeRegexps, *reg)
+ routeRegexps = append(routeRegexps, reg)
127
128
129
b.StartTimer()
0 commit comments