dotfiles/zsh/.config/oh-my-zsh/custom/go.zsh

9 lines
175 B
Bash

# Export $GOPATH
export GOPATH=$HOME/go
# Always use Go modules, even inside GOPATH
export GO111MODULE=on
# Add Go binary directory to $PATH
export PATH="$PATH:$GOPATH/bin"