summaryrefslogtreecommitdiff
path: root/vendor/github.com/yuin/goldmark/util/util_safe.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2025-09-30 13:34:10 +0200
committerStefan Majewsky <majewsky@gmx.net>2025-09-30 13:37:25 +0200
commite75d9e371269a4e46bffa6b3dd1fc7d040e82750 (patch)
treec1f2a9aa8022a2710af5e5a577578855584540df /vendor/github.com/yuin/goldmark/util/util_safe.go
parent0bb27576a37de4bf76dab35c73fa8790fcfa706a (diff)
downloadgofu-f8e0b3d1a52bae7500f4871cfcc855230216c279.tar.gz
add mdeditv2025.1
Diffstat (limited to 'vendor/github.com/yuin/goldmark/util/util_safe.go')
-rw-r--r--vendor/github.com/yuin/goldmark/util/util_safe.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/vendor/github.com/yuin/goldmark/util/util_safe.go b/vendor/github.com/yuin/goldmark/util/util_safe.go
new file mode 100644
index 0000000..2f6a3fe
--- /dev/null
+++ b/vendor/github.com/yuin/goldmark/util/util_safe.go
@@ -0,0 +1,14 @@
+//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)
+}