feat:优化项目信息

This commit is contained in:
henry
2022-03-05 15:31:22 +08:00
parent dcb5948e91
commit 4dc8deaadb
27 changed files with 401 additions and 138 deletions

View File

@ -2,6 +2,7 @@ package utils
import (
"gopkg.in/yaml.v2"
"io"
"os"
"testing"
)
@ -36,3 +37,23 @@ func TestNewFile(t *testing.T) {
return
}
}
func TestNewOpenFile(t *testing.T) {
file, err := os.Open("BizChat(1).db-shm")
if err != nil {
t.Log(err)
return
}
defer file.Close()
_bytes := make([]byte, 0)
if _bytes, err = io.ReadAll(file); err != nil {
t.Log(err)
return
}
t.Log(_bytes)
t.Log(string(_bytes[0:2]))
}