mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
Merge branch 'master' of https://github.com/gogf/gf
This commit is contained in:
@ -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...))
|
||||
}
|
||||
|
||||
@ -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".
|
||||
|
||||
Reference in New Issue
Block a user