diff --git a/os/gbuild/gbuild.go b/os/gbuild/gbuild.go index 05102ea60..7f5cd6e99 100644 --- a/os/gbuild/gbuild.go +++ b/os/gbuild/gbuild.go @@ -59,7 +59,7 @@ func Get(name string, def ...interface{}) interface{} { return nil } -// Get retrieves and returns the build-in binary variable of given name as gvar.Var. +// GetVar retrieves and returns the build-in binary variable of given name as gvar.Var. func GetVar(name string, def ...interface{}) *gvar.Var { return gvar.New(Get(name, def...)) } diff --git a/os/genv/genv.go b/os/genv/genv.go index 0dd2a0a52..0b0e6a8e4 100644 --- a/os/genv/genv.go +++ b/os/genv/genv.go @@ -11,8 +11,8 @@ import ( "github.com/gogf/gf/container/gvar" "github.com/gogf/gf/os/gcmd" "os" + "strings" ) -import "strings" // All returns a copy of strings representing the environment, // in the form "key=value".