mirror of
https://gitea.com/gitea/tea.git
synced 2024-11-29 22:06:52 +01:00
14 lines
309 B
Go
14 lines
309 B
Go
|
// +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)
|
||
|
}
|