chore: update

This commit is contained in:
Bo-Yi Wu 2020-05-17 12:50:11 +08:00
parent 31939986b9
commit e3336ad2f5

View File

@ -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))
}