mirror of
https://codeberg.org/superseriousbusiness/gotosocial.git
synced 2024-12-21 00:21:59 +03:00
eb08529f35
Co-authored-by: Autumn! <autumnull@posteo.net>
13 lines
309 B
Go
13 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)
|
|
}
|