GAE fix for unsafe #4

Merged
merged 2 commits into from Feb 24, 2017
Jump to file or symbol
Failed to load files and symbols.
+13 −0
Diff settings

Always

Just for now

View
@@ -1,3 +1,5 @@
+// +build !appengine
+
package fasttemplate
import (
View
@@ -0,0 +1,11 @@
+// +build appengine
+
+package fasttemplate
+
+func unsafeBytes2String(b []byte) string {
+ return string(b)
+}
+
+func unsafeString2Bytes(s string) []byte {
+ return []byte(s)
+}