Skip to content

Commit 1209e6d

Browse files
committed
utils
1 parent 3736cdd commit 1209e6d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

utils.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package godzilla
2+
3+
import (
4+
"unsafe"
5+
)
6+
7+
func GetString(b []byte) string {
8+
return *(*string)(unsafe.Pointer(&b))
9+
}

0 commit comments

Comments
 (0)