mirror of
https://gitee.com/johng/gf
synced 2026-07-08 14:39:50 +08:00
add resource feature for gcfg
This commit is contained in:
@ -10,7 +10,7 @@ import "github.com/gogf/gf/container/gmap"
|
||||
|
||||
const (
|
||||
// Default group name for instance usage.
|
||||
DEFAULT_INSTANCE_NAME = "default"
|
||||
DEFAULT_NAME = "default"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -21,7 +21,7 @@ var (
|
||||
// Instance returns an instance of Resource.
|
||||
// The parameter <name> is the name for the instance.
|
||||
func Instance(name ...string) *Resource {
|
||||
key := DEFAULT_INSTANCE_NAME
|
||||
key := DEFAULT_NAME
|
||||
if len(name) > 0 && name[0] != "" {
|
||||
key = name[0]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user