Add dev/go

This commit is contained in:
Henrik Lissner 2017-03-19 01:25:46 -04:00
parent 0be93eca7a
commit 9157420670
2 changed files with 14 additions and 0 deletions

2
dev/go/env.zsh Normal file
View file

@ -0,0 +1,2 @@
export GOPATH="$HOME/.go"
path=($GOPATH/bin $path)

12
dev/go/install Normal file
View 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