mirror of
1
Fork 0
gotosocial/vendor/github.com/yuin/goldmark/util/util_safe.go

15 lines
336 B
Go

//go:build appengine || js
// +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)
}