From 5b72060f3720f4020f8006e611112f4d7507c7b5 Mon Sep 17 00:00:00 2001 From: kun Date: Thu, 7 Nov 2019 09:28:16 +0800 Subject: [PATCH] auto enable go module --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index b7ee066..40cdd81 100644 --- a/main.go +++ b/main.go @@ -66,6 +66,9 @@ func init() { os.Setenv("GOPRIVATE", excludeHost) } + // Enable Go module + os.Setenv("GO111MODULE", "on") + downloadRoot = getDownloadRoot() }