restructure
This commit is contained in:
parent
edcbfde351
commit
eebaadc16e
21 changed files with 937 additions and 626 deletions
27
reporter/level_string.go
Normal file
27
reporter/level_string.go
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
// Code generated by "stringer -type Level -trimprefix Level"; DO NOT EDIT.
|
||||
|
||||
package reporter
|
||||
|
||||
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[LevelDebug-0]
|
||||
_ = x[LevelInfo-1]
|
||||
_ = x[LevelWarn-2]
|
||||
_ = x[LevelError-3]
|
||||
_ = x[LevelFatal-4]
|
||||
}
|
||||
|
||||
const _Level_name = "DebugInfoWarnErrorFatal"
|
||||
|
||||
var _Level_index = [...]uint8{0, 5, 9, 13, 18, 23}
|
||||
|
||||
func (i Level) String() string {
|
||||
if i >= Level(len(_Level_index)-1) {
|
||||
return "Level(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
return _Level_name[_Level_index[i]:_Level_index[i+1]]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue