Files
HackBrowserData/internal/log/level.go
T
Roger 0ed920f846 docs: trim code comments to the why (#676)
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.
2026-11-02 00:03:03 +08:00

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 "???"
}
}