From 3a183cb218c6812964a70d2e75884ad7071d9c0c Mon Sep 17 00:00:00 2001 From: Wim Date: Tue, 6 Jun 2017 00:01:05 +0200 Subject: Update vendor --- vendor/github.com/valyala/fasttemplate/unsafe.go | 2 ++ vendor/github.com/valyala/fasttemplate/unsafe_gae.go | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 vendor/github.com/valyala/fasttemplate/unsafe_gae.go (limited to 'vendor/github.com/valyala') 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) +} -- cgit v1.2.3