use new serial lib

This commit is contained in:
zhiqiang feng
2020-12-29 11:00:01 +08:00
parent 38a4dbdb84
commit 2011a10464
8 changed files with 45 additions and 35 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ const (
var buffer []byte
var RawLog *rotatelogs.RotateLogs
func Append(data []byte) bool {
func Append(data string) bool {
buffer = append(buffer, data...)
if buffer[len(buffer)-1] == '\r' {
buffer = append(buffer, '\n')