Browse Source

codecgen: set checkVendor to true from go 1.7+

Updates #164
Ugorji Nwoke 9 years ago
parent
commit
ac7e58c547
1 changed files with 10 additions and 0 deletions
  1. 10 0
      codec/gen_17.go

+ 10 - 0
codec/gen_17.go

@@ -0,0 +1,10 @@
+// Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved.
+// Use of this source code is governed by a MIT license found in the LICENSE file.
+
+// +build go1.7
+
+package codec
+
+func init() {
+	genCheckVendor = true
+}