summaryrefslogtreecommitdiff
path: root/go
diff options
context:
space:
mode:
authorManolama <clarsen@euphoriaaudio.com>2016-12-08 22:15:20 -0800
committerChris Larsen <clarsen@yahoo-inc.com>2016-12-08 22:19:33 -0800
commitdc5975ba7aaee455f6f9dd6c9f16650e0d2faaa4 (patch)
treef87ad45b2831dabde60f1ba23a1c9aeffe7beec2 /go
parent0de4f3f75be54522af19ed6595fb41f2647f8b94 (diff)
downloadflatbuffers-dc5975ba7aaee455f6f9dd6c9f16650e0d2faaa4.tar.gz
flatbuffers-dc5975ba7aaee455f6f9dd6c9f16650e0d2faaa4.tar.bz2
flatbuffers-dc5975ba7aaee455f6f9dd6c9f16650e0d2faaa4.zip
Restore the ''import "unsafe'' removed in 36daedf35fd0cc2ad0e5e24d187b25613c13660e.
This was causing build failures with tools dependent on Flatbuffers in Go. E.g. go/src/github.com/google/flatbuffers/go/sizes.go:50: undefined: unsafe in unsafe.Pointer
Diffstat (limited to 'go')
-rw-r--r--go/sizes.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/go/sizes.go b/go/sizes.go
index 30b2e92d..e72b44f8 100644
--- a/go/sizes.go
+++ b/go/sizes.go
@@ -1,5 +1,9 @@
package flatbuffers
+import (
+ "unsafe"
+)
+
const (
// See http://golang.org/ref/spec#Numeric_types