generated from alecodes/base-template
25 lines
640 B
Go
25 lines
640 B
Go
// Code generated by "stringer -type=LogLevel"; DO NOT EDIT.
|
|
|
|
package synchronizator
|
|
|
|
import "strconv"
|
|
|
|
func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
_ = x[ERROR-0]
|
|
_ = x[INFO-1]
|
|
_ = x[DEBUG-2]
|
|
}
|
|
|
|
const _LogLevel_name = "ERRORINFODEBUG"
|
|
|
|
var _LogLevel_index = [...]uint8{0, 5, 9, 14}
|
|
|
|
func (i LogLevel) String() string {
|
|
if i < 0 || i >= LogLevel(len(_LogLevel_index)-1) {
|
|
return "LogLevel(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _LogLevel_name[_LogLevel_index[i]:_LogLevel_index[i+1]]
|
|
}
|