mirror of
https://github.com/42wim/matterbridge.git
synced 2024-12-21 00:12:01 -08:00
c4157a4d5b
* Update dependencies * Fix whatsmeow API changes
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))
|
|
}
|