diff --git a/zsh/.config/oh-my-zsh/custom/go.zsh b/zsh/.config/oh-my-zsh/custom/go.zsh index b19362f..7900b0c 100644 --- a/zsh/.config/oh-my-zsh/custom/go.zsh +++ b/zsh/.config/oh-my-zsh/custom/go.zsh @@ -1,5 +1,8 @@ # 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"