Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
59 lines (40 sloc) 1.13 KB
title
Getting Started

Enable Go module

If your Go version is Go 1.11 and above, you only need to set an environment to enable Go module. Click here to update Go.

Mac/Linux

export GO111MODULE="on"

Windows

$env:GO111MODULE="on"

Set GOPROXY environment

If you use Go 1.13 and above, we recommand you use this command to set GOPROXY environment. Click here to update Go.

go env -w GOPROXY="https://goproxy.io,direct"

You could follow these instructions if your Go version < 1.13:

Mac/Linux

export GOPROXY="https://goproxy.io"

Windows

$env:GOPROXY="https://goproxy.io"

Add Environments in your profile (optional)

Mac/Linux

echo "export GOPROXY=https://goproxy.io" >> ~/.profile && source ~/.profile

Windows

1. Right click This PC -> Properties -> Advanced system settings -> Environment Variables
2. Click "New" in Environment Variables
3. Input Variable Name: “GOPROXY”
4. Input Variable Value: “https://goproxy.io”
5. Click "OK", save your settings.
You can’t perform that action at this time.