func Reload() {
	env = map[string]string{}
	loadEnv()
}
Reload the ENV variables. Useful if
an external ENV manager has been used
package envy
import (
	"errors"
	"flag"
	"fmt"
	"io/ioutil"
	"os"
	"os/exec"
	"path/filepath"
	"runtime"
	"strings"
	"sync"
	"github.com/joho/godotenv"
	"github.com/rogpeppe/go-internal/modfile"
)
var gil = &sync.RWMutex{}
var env = map[string]string{}
const GO111MODULE = "GO111MODULE"
func init() {
	Load()
	loadEnv()
}
func loadEnv() {
	gil.Lock()
	defer gil.Unlock()
	if os.Getenv("GO_ENV") == "" {
		if v := flag.Lookup("test.v"); v != nil {
			env["GO_ENV"] = "test"
		}
	}
	if os.Getenv("GOPATH") == "" {
		out, err := exec.Command("go", "env", "GOPATH").Output()
		if err == nil {
			gp := strings.TrimSpace(string(out))
			os.Setenv("GOPATH", gp)
		}
	}
	for _, e := range os.Environ() {
		pair := strings.Split(e, "=")
		env[pair[0]] = os.Getenv(pair[0])
	}
}
func Mods() bool {
	go111 := Get(GO111MODULE, "")
	if !InGoPath() {
		return go111 != "off"
	}
	return go111 == "on"
}