mirror of
https://github.com/gin-gonic/gin.git
synced 2025-05-17 15:37:29 +08:00
lint code
This commit is contained in:
@ -341,7 +341,7 @@ func exampleFromPath(path string) (string, Params) {
|
||||
if start >= 0 {
|
||||
value := fmt.Sprint(rand.Intn(100000))
|
||||
params = append(params, Param{
|
||||
Key: path[start:len(path)],
|
||||
Key: path[start:],
|
||||
Value: value,
|
||||
})
|
||||
output.WriteString(value)
|
||||
|
Reference in New Issue
Block a user