Last active
December 2, 2019 21:08
-
-
Save lmatter/dd3c95de7155f9450325c3f9c4153fe2 to your computer and use it in GitHub Desktop.
Bash script to translate github repo url (e.g., from clone button) into "go get" syntax.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
import=$(echo $1 |cut -f2 -d@ | tr ':' /) | |
go get ${import%.*} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment