From b7e0e5aa0d1796710c80dc4c135308e6be95533b Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Fri, 21 Aug 2015 11:23:52 +0300 Subject: [PATCH] Don't use unsafe on appengine. Fixes #151. --- safe.go | 7 +++++++ unsafe.go | 2 ++ 2 files changed, 9 insertions(+) create mode 100644 safe.go diff --git a/safe.go b/safe.go new file mode 100644 index 0000000..d66dc56 --- /dev/null +++ b/safe.go @@ -0,0 +1,7 @@ +// +build appengine + +package redis + +func bytesToString(b []byte) string { + return string(b) +} diff --git a/unsafe.go b/unsafe.go index 1c4d55f..3cd8d1c 100644 --- a/unsafe.go +++ b/unsafe.go @@ -1,3 +1,5 @@ +// +build !appengine + package redis import (