Skip to content

Instantly share code, notes, and snippets.

@GongT
Created December 23, 2018 20:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GongT/6597b3776288d9a3f9078afd72a16068 to your computer and use it in GitHub Desktop.
Save GongT/6597b3776288d9a3f9078afd72a16068 to your computer and use it in GitHub Desktop.
parallel go get
#!/bin/bash
GOBIN=/usr/golang/bin/go
function go() {
if [ "$1" = "get" ]; then
shift
echo "run go get ::: $*" >&2
parallel --will-cite -j 4 "$GOBIN" get -u -v ":::" "$@"
else
"$GOBIN" "$@"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment