1 env GOOS=linux
2
3 env GOARCH=amd64
4 env GOAMD64=v3
5 go list -f '{{context.ToolTags}}'
6 stdout 'amd64.v1 amd64.v2 amd64.v3'
7
8 env GOARCH=arm
9 env GOARM=6
10 go list -f '{{context.ToolTags}}'
11 stdout 'arm.5 arm.6'
12
13 env GOARCH=mips
14 env GOMIPS=hardfloat
15 go list -f '{{context.ToolTags}}'
16 stdout 'mips.hardfloat'
17
18 env GOARCH=mips64
19 env GOMIPS=hardfloat
20 go list -f '{{context.ToolTags}}'
21 stdout 'mips64.hardfloat'
22
23 env GOARCH=ppc64
24 env GOPPC64=power9
25 go list -f '{{context.ToolTags}}'
26 stdout 'ppc64.power8 ppc64.power9'
27
28 env GOARCH=ppc64
29 env GOPPC64=power10
30 go list -f '{{context.ToolTags}}'
31 stdout 'ppc64.power8 ppc64.power9 ppc64.power10'
32
33 env GOARCH=ppc64le
34 env GOPPC64=power9
35 go list -f '{{context.ToolTags}}'
36 stdout 'ppc64le.power8 ppc64le.power9'
37
38 env GOARCH=ppc64le
39 env GOPPC64=power10
40 go list -f '{{context.ToolTags}}'
41 stdout 'ppc64le.power8 ppc64le.power9 ppc64le.power10'
42
43 env GOARCH=386
44 env GO386=sse2
45 go list -f '{{context.ToolTags}}'
46 stdout '386.sse2'
47
48 env GOARCH=wasm
49 env GOWASM=satconv
50 go list -f '{{context.ToolTags}}'
51 stdout 'wasm.satconv'
52
53 -- go.mod --
54 module m
55
56 -- p.go --
57 package p
58
View as plain text