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
如果觉得我的文章对你有用,请随意赞赏