This commit is contained in:
John Guo
2021-02-28 20:14:10 +08:00
2 changed files with 2 additions and 2 deletions

View File

@ -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...))
}

View File

@ -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".