1 2 3 4 5 6 7 8 9 10
#!/bin/bash # Usage # $ go_install [EXECUTABLE_NAME] [GO_GET_URLPATH] set -e GOPATH=$(pwd)/go go get "$2" ln -s "./go/bin/$1" .