mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-07-13 17:12:05 -04:00
14 lines
190 B
Go
14 lines
190 B
Go
//go:build tinygo
|
|
// +build tinygo
|
|
|
|
package fwd
|
|
|
|
import (
|
|
"unsafe"
|
|
)
|
|
|
|
// unsafe cast string as []byte
|
|
func unsafestr(b string) []byte {
|
|
return unsafe.Slice(unsafe.StringData(b), len(b))
|
|
}
|