Add dev/go
This commit is contained in:
parent
0be93eca7a
commit
9157420670
2
dev/go/env.zsh
Normal file
2
dev/go/env.zsh
Normal file
|
@ -0,0 +1,2 @@
|
|||
export GOPATH="$HOME/.go"
|
||||
path=($GOPATH/bin $path)
|
12
dev/go/install
Normal file
12
dev/go/install
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
case $OSTYPE in
|
||||
darwin*)
|
||||
brew install go
|
||||
;;
|
||||
linux*)
|
||||
if [[ -f /etc/arch-release ]]; then
|
||||
sudo pacman --needed --noconfirm -S go
|
||||
fi
|
||||
;;
|
||||
esac
|
Loading…
Reference in a new issue