...
1
2
3 package loglist3
4
5 import "strconv"
6
7 func _() {
8
9
10 var x [1]struct{}
11 _ = x[UndefinedLogStatus-0]
12 _ = x[PendingLogStatus-1]
13 _ = x[QualifiedLogStatus-2]
14 _ = x[UsableLogStatus-3]
15 _ = x[ReadOnlyLogStatus-4]
16 _ = x[RetiredLogStatus-5]
17 _ = x[RejectedLogStatus-6]
18 }
19
20 const _LogStatus_name = "UndefinedLogStatusPendingLogStatusQualifiedLogStatusUsableLogStatusReadOnlyLogStatusRetiredLogStatusRejectedLogStatus"
21
22 var _LogStatus_index = [...]uint8{0, 18, 34, 52, 67, 84, 100, 117}
23
24 func (i LogStatus) String() string {
25 if i < 0 || i >= LogStatus(len(_LogStatus_index)-1) {
26 return "LogStatus(" + strconv.FormatInt(int64(i), 10) + ")"
27 }
28 return _LogStatus_name[_LogStatus_index[i]:_LogStatus_index[i+1]]
29 }
30
View as plain text