Skip to content

Commit

Permalink
fix typo for paramsInt function (#1913)
Browse files Browse the repository at this point in the history
  • Loading branch information
remotenode committed May 24, 2022
1 parent deb02cb commit 061c2a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ctx.go
Expand Up @@ -858,7 +858,7 @@ func (c *Ctx) AllParams() map[string]string {
// it defaults to zero if the parameter is not found or if the
// parameter cannot be converted to an integer
// If a default value is given, it will return that value in case the param
// doesn't exist or cannot be converted to an integrer
// doesn't exist or cannot be converted to an integer
func (c *Ctx) ParamsInt(key string, defaultValue ...int) (int, error) {
// Use Atoi to convert the param to an int or return zero and an error
value, err := strconv.Atoi(c.Params(key))
Expand Down

1 comment on commit 061c2a9

@ReneWerner87
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: 061c2a9 Previous: deb02cb Ratio
Benchmark_AcquireCtx 1342 ns/op 1440 B/op 5 allocs/op 552.2 ns/op 1440 B/op 5 allocs/op 2.43
Benchmark_App_ETag 6771 ns/op 1044 B/op 3 allocs/op 3268 ns/op 1044 B/op 3 allocs/op 2.07
Benchmark_App_ETag_Weak 6837 ns/op 1068 B/op 4 allocs/op 3389 ns/op 1068 B/op 4 allocs/op 2.02
Benchmark_Utils_ETag 6953 ns/op 1044 B/op 3 allocs/op 3442 ns/op 1044 B/op 3 allocs/op 2.02
Benchmark_Utils_ETag_Weak 7018 ns/op 1068 B/op 4 allocs/op 3405 ns/op 1068 B/op 4 allocs/op 2.06

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.