refactory: read,write use channel
This commit is contained in:
@ -48,3 +48,7 @@ func Error(msg string, data ...any) {
|
||||
_, _ = fmt.Fprintf(buf, msg, data...)
|
||||
fmt.Println(buf.String())
|
||||
}
|
||||
|
||||
type WroteLogger interface {
|
||||
Info(msg string, data ...any)
|
||||
}
|
||||
|
Reference in New Issue
Block a user