summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/valyala/fasttemplate
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/valyala/fasttemplate')
-rw-r--r--vendor/github.com/valyala/fasttemplate/unsafe.go2
-rw-r--r--vendor/github.com/valyala/fasttemplate/unsafe_gae.go11
2 files changed, 13 insertions, 0 deletions
diff --git a/vendor/github.com/valyala/fasttemplate/unsafe.go b/vendor/github.com/valyala/fasttemplate/unsafe.go
index 5e25b0ff..0498248f 100644
--- a/vendor/github.com/valyala/fasttemplate/unsafe.go
+++ b/vendor/github.com/valyala/fasttemplate/unsafe.go
@@ -1,3 +1,5 @@
+// +build !appengine
+
package fasttemplate
import (
diff --git a/vendor/github.com/valyala/fasttemplate/unsafe_gae.go b/vendor/github.com/valyala/fasttemplate/unsafe_gae.go
new file mode 100644
index 00000000..cc4ce151
--- /dev/null
+++ b/vendor/github.com/valyala/fasttemplate/unsafe_gae.go
@@ -0,0 +1,11 @@
+// +build appengine
+
+package fasttemplate
+
+func unsafeBytes2String(b []byte) string {
+ return string(b)
+}
+
+func unsafeString2Bytes(s string) []byte {
+ return []byte(s)
+}