This commit is contained in:
2025-02-21 14:37:01 +08:00
parent d4b7e7e9e6
commit 4aa5110726

View File

@@ -5,6 +5,10 @@ import (
"log"
)
func init() {
log.SetFlags(log.Ldate | log.Ltime)
}
// record INFO message. Color White
func Info(format string, a ...interface{}) {
message := fmt.Sprintf("\033[37m[Info] "+format+"\033[0m\n", a...)