This commit is contained in:
史悦
2025-08-13 19:03:20 +08:00
commit d62a2e9ed9
73 changed files with 7296 additions and 0 deletions

9
pkg/util/memory.go Normal file
View File

@@ -0,0 +1,9 @@
package util
import "unsafe"
func DeepCoyp(s string) string {
b := make([]byte, len(s))
copy(b, s)
return *(*string)(unsafe.Pointer(&b))
}