2020-06-25 08:13:18 +05:30
|
|
|
// +build appengine js
|
2019-12-31 07:23:28 +05:30
|
|
|
|
|
|
|
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)
|
|
|
|
}
|