From dc5975ba7aaee455f6f9dd6c9f16650e0d2faaa4 Mon Sep 17 00:00:00 2001 From: Manolama Date: Thu, 8 Dec 2016 22:15:20 -0800 Subject: [PATCH] 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 --- go/sizes.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/go/sizes.go b/go/sizes.go index 30b2e92d6..e72b44f86 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