summaryrefslogtreecommitdiff
path: root/vendor/github.com/yuin/goldmark/util/util_safe.go
blob: 507a9d0293667779d96d10850b1fb26115d6052a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// +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)
}