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 20th, 2020 at 11:14 am
如果觉得我的文章对你有用,请随意赞赏