浏览代码

codecgen: set checkVendor to true from go 1.7+

Updates #164
Ugorji Nwoke 9 年之前
父节点
当前提交
ac7e58c547
共有 1 个文件被更改,包括 10 次插入0 次删除
  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
+}