-
Notifications
You must be signed in to change notification settings - Fork 1
/
enums.go
41 lines (35 loc) · 1.07 KB
/
enums.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
package garif
type ResultKind string
// declare JSON values
const (
_pass ResultKind = "pass"
_open ResultKind = "open"
_informational ResultKind = "informational"
_notApplicable ResultKind = "notApplicable"
_review ResultKind = "review"
_fail ResultKind = "fail"
)
// create public visible constants with a namespace as enums
const (
ResultKind_Pass ResultKind = _pass
ResultKind_Open ResultKind = _open
ResultKind_Informational ResultKind = _informational
ResultKind_NotApplicable ResultKind = _notApplicable
ResultKind_Review ResultKind = _review
ResultKind_Fail ResultKind = _fail
)
type ResultLevel string
// declare JSON values
const (
_warning ResultLevel = "warning"
_error ResultLevel = "error"
_note ResultLevel = "note"
_none ResultLevel = "none"
)
// create public visible constants with a namespace as enums
const (
ResultLevel_Warning ResultLevel = _warning
ResultLevel_Error ResultLevel = _error
ResultLevel_Note ResultLevel = _note
ResultLevel_None ResultLevel = _none
)