From 54b629561e580443c2cb23bc5d5ffbccb166053b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E5=B4=87=E5=B2=B3?= Date: Mon, 22 Feb 2021 11:20:10 +0800 Subject: [PATCH 1/2] style: code style --- os/genv/genv.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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". From 0238cdd5ec6e8ddc3eb4b7139d03881f1ac82d2a Mon Sep 17 00:00:00 2001 From: develop1024 <656562721@qq.com> Date: Tue, 23 Feb 2021 23:07:28 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E9=94=99=E8=AF=AF-os/gbuild/GetVar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- os/gbuild/gbuild.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/gbuild/gbuild.go b/os/gbuild/gbuild.go index 19b9e1fe5..315b1d6d6 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...)) }