From 5afdd667b9a20a9b1c7ec35411f2d0c176da9f66 Mon Sep 17 00:00:00 2001 From: Inhere Date: Sun, 29 May 2022 23:25:04 +0800 Subject: [PATCH] up: use stdutil.Value instead of the goutil.Value --- gflag.go | 3 ++- util.go | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gflag.go b/gflag.go index ba2867e..bcbe4c7 100644 --- a/gflag.go +++ b/gflag.go @@ -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" ) @@ -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 diff --git a/util.go b/util.go index 7abd1db..76acfb1 100644 --- a/util.go +++ b/util.go @@ -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...) } @@ -360,6 +360,5 @@ func wrapColor2string(s string) string { return color.WrapTag(code, "mga") }) } - return s }