feat: 改用 logrus 输出日志

This commit is contained in:
Mmx233
2022-08-14 20:47:23 +08:00
parent 51e06a1596
commit df87d75aca
14 changed files with 107 additions and 181 deletions

View File

@@ -1,9 +1,11 @@
package util
import log "github.com/sirupsen/logrus"
func getbyte(a byte) int {
x := int(a)
if x > 255 {
Log.Fatal("INVALID_CHARACTER_ERR: DOM Exception 5")
log.Fatalln("INVALID_CHARACTER_ERR: DOM Exception 5")
}
return x
}