mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-16 13:22:09 +08:00
refactor: use bytes.ReplaceAll directly
This commit is contained in:
parent
b2d4185eec
commit
25fc61102d
@ -164,7 +164,7 @@ func function(pc uintptr) []byte {
|
|||||||
if period := bytes.Index(name, dot); period >= 0 {
|
if period := bytes.Index(name, dot); period >= 0 {
|
||||||
name = name[period+1:]
|
name = name[period+1:]
|
||||||
}
|
}
|
||||||
name = bytes.Replace(name, centerDot, dot, -1)
|
name = bytes.ReplaceAll(name, centerDot, dot)
|
||||||
return name
|
return name
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user