mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-12-04 05:43:27 +01:00
Comments that restated names or narrated the code are gone, and multi-line ones are cut to a line of why. Only comments change: each edited Go file has the same token stream as before. winapi and abe come later.
25 lines
267 B
Go
25 lines
267 B
Go
package log
|
|
|
|
type Level int32
|
|
|
|
const (
|
|
DebugLevel Level = iota + 1
|
|
|
|
InfoLevel
|
|
|
|
WarnLevel
|
|
)
|
|
|
|
func (l Level) String() string {
|
|
switch l {
|
|
case DebugLevel:
|
|
return "DBG"
|
|
case InfoLevel:
|
|
return "INF"
|
|
case WarnLevel:
|
|
return "WRN"
|
|
default:
|
|
return "???"
|
|
}
|
|
}
|