Skip to content

Commit de90949

Browse files
committed
Migrate +build constraint format
Migrate +build constraint to follow the new go:build format. https://go.googlesource.com/proposal/+/master/design/draft-gobuild.md
1 parent a8a62f3 commit de90949

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build go1.7
1+
//go:build go1.7
22

33
package csrf
44

store.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build go1.11
1+
//go:build go1.11
22

33
package csrf
44

store_legacy.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// +build !go1.11
1+
//go:build !go1.11
2+
23
// file for compatibility with go versions prior to 1.11
34

45
package csrf

store_legacy_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// +build !go1.11
1+
//go:build !go1.11
2+
23
// file for compatibility with go versions prior to 1.11
34

45
package csrf

store_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build go1.11
1+
//go:build go1.11
22

33
package csrf
44

0 commit comments

Comments
 (0)