refactory: read,write use channel

This commit is contained in:
loveuer
2024-05-24 17:27:52 +08:00
parent c194bec3e3
commit e4d5a1be76
9 changed files with 150 additions and 168 deletions

View File

@ -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)
}