fix: use interface
parent
fe5297699f
commit
8fcc66e9e4
4
color.go
4
color.go
|
@ -8,9 +8,9 @@ import (
|
||||||
"kumoly.io/core/log/color"
|
"kumoly.io/core/log/color"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (l *Logger) M(s string, attrs ...color.Attribute) string {
|
func (l *Logger) M(s interface{}, attrs ...color.Attribute) string {
|
||||||
if !l.color {
|
if !l.color {
|
||||||
return s
|
return fmt.Sprint(s)
|
||||||
}
|
}
|
||||||
style := ""
|
style := ""
|
||||||
for i, v := range attrs {
|
for i, v := range attrs {
|
||||||
|
|
Loading…
Reference in New Issue