fix: use interface

master
Evan Chen 2021-11-02 15:58:08 +08:00
parent fe5297699f
commit 8fcc66e9e4
1 changed files with 2 additions and 2 deletions

View File

@ -8,9 +8,9 @@ import (
"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 {
return s
return fmt.Sprint(s)
}
style := ""
for i, v := range attrs {