mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-14 14:49:32 +01:00
13 lines
309 B
Go
Vendored
13 lines
309 B
Go
Vendored
// +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)
|
|
}
|