diff --git a/style/style.go b/style/style.go index 77f8ee5..b23374d 100644 --- a/style/style.go +++ b/style/style.go @@ -5,7 +5,6 @@ import ( "strconv" "strings" - "gitea.meta-tech.academy/go/core/util" "github.com/gookit/color" ) @@ -57,7 +56,7 @@ func NewStyleByDef(def string) *Style { if len(d) > KEY_STYLE_OPTION { o = strings.Split(d[KEY_STYLE_OPTION], ",") } - util.PrependToSliceStr(&c, "#") + prependToSliceStr(&c, "#") var s *color.RGBStyle switch len(c) { case 1: @@ -67,7 +66,7 @@ func NewStyleByDef(def string) *Style { } for _, elm := range o { - s.AddOpts(color.Color(util.Str2int(elm, 10, 0))) + s.AddOpts(color.Color(str2int(elm, 10, 0))) } // s.Printf(" %-20s\n", d[KEY_STYLE_NAME]) return &Style{s, d[KEY_STYLE_NAME]}