export GOPATH=${PWD}
if [ -n "$1" ]; then
export GOOS=$1
fi
if [ -n "$2" ]; then
export GOARCH=$2
fi
go install ${PWD##*/}
Last modification:January 20, 2020
© Allow specification reprint