Apply .gitignore rules

This commit is contained in:
皮蛋13361098506
2025-01-06 16:21:36 +08:00
parent 1b77f62820
commit ccd2c530cf
580 changed files with 69806 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
package logUtil
type LogType int
// 日志等级
const (
// Info 信息
Info LogType = iota
// Warn 警告
Warn
// Debug 调试
Debug
// Error 错误
Error
// Fatal 致命
Fatal
)
// String
// @description: 类型转化为字符串
// parameter:
// @receiver t:
// return:
// @string:
func (t LogType) String() string {
switch t {
case Info:
return "Info"
case Warn:
return "Warn"
case Debug:
return "Debug"
case Error:
return "Error"
case Fatal:
return "Fatal"
}
return "LogTypeDefault"
}