replace char <xxx> to ;add GetWithEnv/GetWithCmd fuctions for package gcfg

This commit is contained in:
John Guo
2021-10-21 18:22:47 +08:00
parent 6bde7c61b4
commit fa5499373a
124 changed files with 930 additions and 827 deletions

View File

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

View File

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