Skip to content

Commit ed6f85c

Browse files
authored
build: convert to go:build directives (#2664)
1 parent 1bdf86b commit ed6f85c

11 files changed

+13
-2
lines changed

binding/binding.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a MIT style
33
// license that can be found in the LICENSE file.
44

5+
//go:build !nomsgpack
56
// +build !nomsgpack
67

78
package binding

binding/binding_msgpack_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a MIT style
33
// license that can be found in the LICENSE file.
44

5+
//go:build !nomsgpack
56
// +build !nomsgpack
67

78
package binding

binding/binding_nomsgpack.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a MIT style
33
// license that can be found in the LICENSE file.
44

5+
//go:build nomsgpack
56
// +build nomsgpack
67

78
package binding

binding/msgpack.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a MIT style
33
// license that can be found in the LICENSE file.
44

5+
//go:build !nomsgpack
56
// +build !nomsgpack
67

78
package binding

binding/msgpack_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a MIT style
33
// license that can be found in the LICENSE file.
44

5+
//go:build !nomsgpack
56
// +build !nomsgpack
67

78
package binding

context_appengine.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
// +build appengine
2-
31
// Copyright 2017 Manu Martinez-Almeida. All rights reserved.
42
// Use of this source code is governed by a MIT style
53
// license that can be found in the LICENSE file.
64

5+
//go:build appengine
6+
// +build appengine
7+
78
package gin
89

910
func init() {

errors_1.13_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build go1.13
12
// +build go1.13
23

34
package gin

internal/json/json.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a MIT style
33
// license that can be found in the LICENSE file.
44

5+
//go:build !jsoniter
56
// +build !jsoniter
67

78
package json

internal/json/jsoniter.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a MIT style
33
// license that can be found in the LICENSE file.
44

5+
//go:build jsoniter
56
// +build jsoniter
67

78
package json

render/msgpack.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a MIT style
33
// license that can be found in the LICENSE file.
44

5+
//go:build !nomsgpack
56
// +build !nomsgpack
67

78
package render

render/render_msgpack_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a MIT style
33
// license that can be found in the LICENSE file.
44

5+
//go:build !nomsgpack
56
// +build !nomsgpack
67

78
package render

0 commit comments

Comments
 (0)