From d99cc3f58ca503815a37f9f930c6d8b1edd85c66 Mon Sep 17 00:00:00 2001 From: Rishabh Garg <52459968+rishabhgarg2@users.noreply.github.com> Date: Mon, 23 Sep 2019 16:31:08 -0400 Subject: [PATCH] Updated SettingGOPATH (markdown) --- SettingGOPATH.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SettingGOPATH.md b/SettingGOPATH.md index df1582ed..10dd497c 100644 --- a/SettingGOPATH.md +++ b/SettingGOPATH.md @@ -1,10 +1,10 @@ +# Setting `GO` environment variables +- go env -w GOPROXY=direct +- go env -w GOSUMDB=off + # Setting `GOPATH` The `GOPATH` environment variable specifies the location of your workspace. If no `GOPATH` is set, it is assumed to be `$HOME/go` on Unix systems and `%USERPROFILE%\go` on Windows. If you want to use a custom location as your workspace, you can set the `GOPATH` environment variable. This page explains how to set this variable on various platforms. -Setting go environment variables for executing "go mod tidy" -go env -w GOPROXY=direct -go env -w GOSUMDB=off - - [Unix systems](#unix-systems) * [Bash](#bash)