fix application bug

This commit is contained in:
Jeff
2019-05-13 11:19:18 +08:00
committed by zryfish
parent 996d6fe4c5
commit 5462f51e65
717 changed files with 87703 additions and 53426 deletions

View File

@@ -68,8 +68,16 @@ func loadEnv() {
}
}
// Mods returns true if module support is enabled, false otherwise
// See https://github.com/golang/go/wiki/Modules#how-to-install-and-activate-module-support for details
func Mods() bool {
return Get(GO111MODULE, "off") == "on"
go111 := Get(GO111MODULE, "")
if !InGoPath() {
return go111 != "off"
}
return go111 == "on"
}
// Reload the ENV variables. Useful if
@@ -168,7 +176,7 @@ func Map() map[string]string {
for k, v := range env {
cp[k] = v
}
return env
return cp
}
// Temp makes a copy of the values and allows operation on

View File

@@ -1,3 +1,3 @@
package envy
const Version = "v1.6.15"
const Version = "v1.7.0"