Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add //go:build lines #285

Merged
merged 1 commit into from Jan 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Expand Up @@ -26,5 +26,5 @@ jobs:
- name: Test
run: go test -v -race ./...
- name: Format
if: matrix.go-version == '1.16.x'
if: matrix.go-version == '1.17.x'
run: diff -u <(echo -n) <(gofmt -d .)
1 change: 1 addition & 0 deletions cmp/cmpopts/errors_go113.go
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build go1.13
// +build go1.13

package cmpopts
Expand Down
1 change: 1 addition & 0 deletions cmp/cmpopts/errors_xerrors.go
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build !go1.13
// +build !go1.13

// TODO(≥go1.13): For support on <go1.13, we use the xerrors package.
Expand Down
1 change: 1 addition & 0 deletions cmp/export_panic.go
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build purego
// +build purego

package cmp
Expand Down
1 change: 1 addition & 0 deletions cmp/export_unsafe.go
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build !purego
// +build !purego

package cmp
Expand Down
1 change: 1 addition & 0 deletions cmp/internal/diff/debug_disable.go
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build !cmp_debug
// +build !cmp_debug

package diff
Expand Down
1 change: 1 addition & 0 deletions cmp/internal/diff/debug_enable.go
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build cmp_debug
// +build cmp_debug

package diff
Expand Down
1 change: 1 addition & 0 deletions cmp/internal/value/pointer_purego.go
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build purego
// +build purego

package value
Expand Down
1 change: 1 addition & 0 deletions cmp/internal/value/pointer_unsafe.go
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build !purego
// +build !purego

package value
Expand Down