We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e5409b commit d6f7462Copy full SHA for d6f7462
mktypes.sh
@@ -6,11 +6,15 @@ GOOS=$(go env GOOS)
6
GOARCH=$(go env GOARCH)
7
8
9
-for PKG in $PKGS
+for DIR in . v3
10
do
11
- if [ -e "${PKG}/types_${GOOS}.go" ]; then
12
- (echo "// +build $GOOS"
13
- echo "// +build $GOARCH"
14
- go tool cgo -godefs "${PKG}/types_${GOOS}.go") | gofmt > "${PKG}/${PKG}_${GOOS}_${GOARCH}.go"
15
- fi
+ (cd "$DIR" || exit
+ for PKG in $PKGS
+ do
+ if [ -e "${PKG}/types_${GOOS}.go" ]; then
+ (echo "// +build $GOOS"
16
+ echo "// +build $GOARCH"
17
+ go tool cgo -godefs "${PKG}/types_${GOOS}.go") | gofmt > "${PKG}/${PKG}_${GOOS}_${GOARCH}.go"
18
+ fi
19
+ done)
20
done
0 commit comments