This commit is contained in:
yanweidong 2025-02-21 14:37:01 +08:00
parent d4b7e7e9e6
commit 4aa5110726
1 changed files with 4 additions and 0 deletions

View File

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