Skip to content

Commit c60b321

Browse files
FiloSottilegopherbot
authored andcommitted
TargetSpecific: update purego tag guidance
Updates golang/go#58636 Change-Id: I28cbe38d750ae10f3f78af909de33424ff2a6241 Reviewed-on: https://go-review.googlesource.com/c/wiki/+/561955 Auto-Submit: Filippo Valsorda <[email protected]> Commit-Queue: Filippo Valsorda <[email protected]> Reviewed-by: Filippo Valsorda <[email protected]>
1 parent 52c302b commit c60b321

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

TargetSpecific.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func sumGeneric(out *[16]byte, m []byte, key *[32]byte) {
3838
poly1305_amd64.go
3939

4040
```go
41-
// +build gc,!purego
41+
//go:build !purego
4242

4343
package poly1305
4444

@@ -49,7 +49,7 @@ func sum(out *[16]byte, m []byte, key *[32]byte)
4949
poly1305_amd64.s
5050

5151
```
52-
// +build gc,!purego
52+
//go:build !purego
5353

5454
// func sum(out *[16]byte, m []byte, key *[32]byte)
5555
TEXT ·sum(SB), $0-128
@@ -59,7 +59,7 @@ TEXT ·sum(SB), $0-128
5959
poly1305_noasm.go
6060

6161
```go
62-
// +build !amd64 !gc purego
62+
//go:build !amd64 || purego
6363

6464
package poly1305
6565

@@ -91,5 +91,3 @@ func TestSumCompare(t *testing.T) {
9191
```
9292

9393
For more complete examples see the [x/crypto/poly1305](https://github.com/golang/crypto/tree/master/poly1305) and [x/crypto/salsa20/salsa](https://github.com/golang/crypto/tree/master/salsa20/salsa) packages.
94-
95-
Note that packages in the standard library (as opposed to modules like golang.org/x/crypto) do not use the `gc` and `purego` build tags.

0 commit comments

Comments
 (0)