File: logstatus_string.go

package info (click to toggle)
golang-github-google-certificate-transparency 1.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 4,764 kB
  • sloc: sh: 606; makefile: 103; sql: 16
file content (29 lines) | stat: -rw-r--r-- 914 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Code generated by "stringer -type=LogStatus"; DO NOT EDIT.

package loglist3

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[UndefinedLogStatus-0]
	_ = x[PendingLogStatus-1]
	_ = x[QualifiedLogStatus-2]
	_ = x[UsableLogStatus-3]
	_ = x[ReadOnlyLogStatus-4]
	_ = x[RetiredLogStatus-5]
	_ = x[RejectedLogStatus-6]
}

const _LogStatus_name = "UndefinedLogStatusPendingLogStatusQualifiedLogStatusUsableLogStatusReadOnlyLogStatusRetiredLogStatusRejectedLogStatus"

var _LogStatus_index = [...]uint8{0, 18, 34, 52, 67, 84, 100, 117}

func (i LogStatus) String() string {
	if i < 0 || i >= LogStatus(len(_LogStatus_index)-1) {
		return "LogStatus(" + strconv.FormatInt(int64(i), 10) + ")"
	}
	return _LogStatus_name[_LogStatus_index[i]:_LogStatus_index[i+1]]
}