1 2 3 4 5 6 7 8 9
#!/bin/bash # Usage # $ go_install [GO_GET_URLPATH] set -e GOPATH=$(pwd) GOBIN=$(pwd) GO111MODULE=on go get -v -up$1 rm -rf src