1
0
mirror of https://github.com/labstack/echo.git synced 2025-09-16 09:16:29 +02:00

Modernize for loop using range over int in SetParamValues

Uses Go 1.22+ range over int syntax for cleaner iteration.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Vishal Rana
2025-09-15 20:41:29 -07:00
parent f1ebc67c56
commit 3b65867b99

View File

@@ -364,7 +364,7 @@ func (c *context) SetParamValues(values ...string) {
if limit > len(c.pvalues) {
c.pvalues = make([]string, limit)
}
for i := 0; i < limit; i++ {
for i := range limit {
c.pvalues[i] = values[i]
}
}