mirror of
https://gitee.com/johng/gf
synced 2026-07-08 14:39:50 +08:00
replace char <xxx> to ;add GetWithEnv/GetWithCmd fuctions for package gcfg
This commit is contained in:
@ -225,7 +225,7 @@ func (m *Model) getPrimaryKey() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
// mergeArguments creates and returns new arguments by merging <m.extraArgs> and given `args`.
|
||||
// mergeArguments creates and returns new arguments by merging `m.extraArgs` and given `args`.
|
||||
func (m *Model) mergeArguments(args []interface{}) []interface{} {
|
||||
if len(m.extraArgs) > 0 {
|
||||
newArgs := make([]interface{}, len(m.extraArgs)+len(args))
|
||||
|
||||
@ -17,7 +17,7 @@ var (
|
||||
)
|
||||
|
||||
// Instance returns an instance of redis client with specified group.
|
||||
// The <name> param is unnecessary, if `name` is not passed,
|
||||
// The `name` param is unnecessary, if `name` is not passed,
|
||||
// it returns a redis instance with default configuration group.
|
||||
func Instance(name ...string) *Redis {
|
||||
group := DefaultGroupName
|
||||
|
||||
Reference in New Issue
Block a user