mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-18 23:12:17 +08:00
chore: update
This commit is contained in:
parent
31939986b9
commit
e3336ad2f5
6
tree.go
6
tree.go
@ -41,12 +41,6 @@ func (ps Params) ByName(name string) (va string) {
|
||||
return
|
||||
}
|
||||
|
||||
func strToBytes(s string) []byte {
|
||||
x := (*[2]uintptr)(unsafe.Pointer(&s))
|
||||
h := [3]uintptr{x[0], x[1], x[1]}
|
||||
return *(*[]byte)(unsafe.Pointer(&h))
|
||||
}
|
||||
|
||||
func bytesToStr(b []byte) string {
|
||||
return *(*string)(unsafe.Pointer(&b))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user