Xprize update

Former-commit-id: d38919a897961e4d40da3b844057c3fb94fdb6d7
This commit is contained in:
Eric Coissac
2024-07-25 18:09:03 -04:00
parent 4e4fac491f
commit 67665a6b40
18 changed files with 895 additions and 29 deletions

12
pkg/obiutils/strings.go Normal file
View File

@ -0,0 +1,12 @@
package obiutils
import "unsafe"
func UnsafeStringFreomBytes(data []byte) string {
if len(data) > 0 {
s := unsafe.String(unsafe.SliceData(data), len(data))
return s
}
return ""
}