2023-08-21 08:39:14 +02:00
|
|
|
//go:build appengine || js
|
2022-12-16 12:20:22 +01:00
|
|
|
// +build appengine js
|
|
|
|
|
|
|
|
package util
|
|
|
|
|
|
|
|
// BytesToReadOnlyString returns a string converted from given bytes.
|
|
|
|
func BytesToReadOnlyString(b []byte) string {
|
|
|
|
return string(b)
|
|
|
|
}
|
|
|
|
|
|
|
|
// StringToReadOnlyBytes returns bytes converted from given string.
|
|
|
|
func StringToReadOnlyBytes(s string) []byte {
|
|
|
|
return []byte(s)
|
|
|
|
}
|