Skip to content

Commit

Permalink
up: use stdutil.Value instead of the goutil.Value
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed May 29, 2022
1 parent 0a2ba5e commit 5afdd66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion gflag.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
"github.com/gookit/color"
"github.com/gookit/goutil"
"github.com/gookit/goutil/arrutil"
"github.com/gookit/goutil/stdutil"
"github.com/gookit/goutil/strutil"
)

Expand Down Expand Up @@ -1061,7 +1062,7 @@ func (m *FlagMeta) Validate(val string) error {
// DValue wrap the default value
func (m *FlagMeta) DValue() *goutil.Value {
if m.defVal == nil {
m.defVal = &goutil.Value{V: m.DefVal}
m.defVal = &stdutil.Value{V: m.DefVal}
}

return m.defVal
Expand Down
3 changes: 1 addition & 2 deletions util.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var level2color = map[VerbLevel]color.Color{
VerbCrazy: color.FgMagenta,
}

// Logf print log message
// Debugf print log message
func Debugf(format string, v ...interface{}) {
logf(VerbDebug, format, v...)
}
Expand Down Expand Up @@ -360,6 +360,5 @@ func wrapColor2string(s string) string {
return color.WrapTag(code, "mga")
})
}

return s
}

0 comments on commit 5afdd66

Please sign in to comment.