-
Notifications
You must be signed in to change notification settings - Fork 2
/
enum_certificateprovidercarryoutby.go
64 lines (52 loc) · 1.72 KB
/
enum_certificateprovidercarryoutby.go
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// Code generated by "enumerator -type CertificateProviderCarryOutBy -linecomment -empty"; DO NOT EDIT.
package actor
import (
"fmt"
"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[Paper-1]
_ = x[Online-2]
}
const _CertificateProviderCarryOutBy_name = "paperonline"
var _CertificateProviderCarryOutBy_index = [...]uint8{0, 5, 11}
func (i CertificateProviderCarryOutBy) String() string {
i -= 1
if i >= CertificateProviderCarryOutBy(len(_CertificateProviderCarryOutBy_index)-1) {
return "CertificateProviderCarryOutBy(" + strconv.FormatInt(int64(i+1), 10) + ")"
}
return _CertificateProviderCarryOutBy_name[_CertificateProviderCarryOutBy_index[i]:_CertificateProviderCarryOutBy_index[i+1]]
}
func (i CertificateProviderCarryOutBy) MarshalText() ([]byte, error) {
return []byte(i.String()), nil
}
func (i CertificateProviderCarryOutBy) IsPaper() bool {
return i == Paper
}
func (i CertificateProviderCarryOutBy) IsOnline() bool {
return i == Online
}
func ParseCertificateProviderCarryOutBy(s string) (CertificateProviderCarryOutBy, error) {
switch s {
case "paper":
return Paper, nil
case "online":
return Online, nil
default:
return CertificateProviderCarryOutBy(0), fmt.Errorf("invalid CertificateProviderCarryOutBy '%s'", s)
}
}
type CertificateProviderCarryOutByOptions struct {
Paper CertificateProviderCarryOutBy
Online CertificateProviderCarryOutBy
}
var CertificateProviderCarryOutByValues = CertificateProviderCarryOutByOptions{
Paper: Paper,
Online: Online,
}
func (i CertificateProviderCarryOutBy) Empty() bool {
return i == CertificateProviderCarryOutBy(0)
}