mirror of
https://github.com/go-gitea/gitea.git
synced 2024-10-31 08:37:35 -04:00
14 lines
309 B
Go
Vendored
14 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)
|
|
}
|