update doc

This commit is contained in:
dudaodong committed 2024-12-04 10:40:18 +08:00
1 parent e1e15883e9
commit 4595a94b4c
14 files changed
+342 -196

No files matched your search

-1
View File
@@ -360,7 +360,6 @@ func StringToBytes(str string) (b []byte) {
}
// BytesToString converts a byte slice to string without a memory allocation.
// Play: todo
func BytesToString(bytes []byte) string {
return *(*string)(unsafe.Pointer(&bytes))
}