Skip to content

Commit 9dd3657

Browse files
committed
Migrate +build constraint format
Migrate +build constraint to follow the new go:build format. To support all recent Go versions, constraints are declared in both formats. https://go.googlesource.com/proposal/+/master/design/draft-gobuild.md
1 parent a8a62f3 commit 9dd3657

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed

context.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build go1.7
12
// +build go1.7
23

34
package csrf

store.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build go1.11
12
// +build go1.11
23

34
package csrf

store_legacy.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
//go:build !go1.11
12
// +build !go1.11
3+
24
// file for compatibility with go versions prior to 1.11
35

46
package csrf

store_legacy_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
//go:build !go1.11
12
// +build !go1.11
3+
24
// file for compatibility with go versions prior to 1.11
35

46
package csrf

store_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build go1.11
12
// +build go1.11
23

34
package csrf

0 commit comments

Comments
 (0)