Files
dotfiles/zsh/golang.zsh
Jim Myhrberg 80c77c8c2b Refactor shell setup into ~/.zshenv and ~/.zshrc files
It was time to split the environment related stuff out to ~/.zshenv,
leaving my ~/.zshrc file specifically for setup of interactive shells.
2020-02-22 14:27:19 +00:00

30 lines
708 B
Bash
Executable File

#
# Go (golang) setup.
#
install_go_global_packages () {
local packages=(
github.com/akavel/up
github.com/asciimoo/wuzz
github.com/derekparker/delve/cmd/dlv
github.com/kisielk/errcheck
github.com/kr/pretty
github.com/mdempsky/unconvert
github.com/rakyll/hey
github.com/rogpeppe/godef
github.com/saibing/bingo
github.com/spf13/cobra/cobra
github.com/stamblerre/gocode
github.com/vektra/mockery/.../
golang.org/x/tools/cmd/godoc
golang.org/x/tools/cmd/goimports
golang.org/x/tools/cmd/gorename
golang.org/x/tools/cmd/guru
)
for package in "${packages[@]}"; do
echo "installing/updating \"$package\""
go get -u "$package"
done
}