refactor:log包增加处理机制

This commit is contained in:
Mmx
2021-05-05 10:46:04 +08:00
parent 9c274d4364
commit 4e4cdd35c2
6 changed files with 66 additions and 25 deletions

View File

@@ -1,15 +1,9 @@
package Util
import (
"log"
"os"
)
func getbyte(a byte) int {
x := int(a)
if x > 255 {
log.Println("INVALID_CHARACTER_ERR: DOM Exception 5")
os.Exit(1)
Log.Fatalln("INVALID_CHARACTER_ERR: DOM Exception 5")
}
return x
}