-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcode_string.go
39 lines (33 loc) · 1.22 KB
/
code_string.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
// Code generated by "stringer -type Code -trimprefix Code"; DO NOT EDIT.
package nakama
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[CodeOK-0]
_ = x[CodeCanceled-1]
_ = x[CodeUnknown-2]
_ = x[CodeInvalidArgument-3]
_ = x[CodeDeadlineExceeded-4]
_ = x[CodeNotFound-5]
_ = x[CodeAlreadyExists-6]
_ = x[CodePermissionDenied-7]
_ = x[CodeResourceExhausted-8]
_ = x[CodeFailedPrecondition-9]
_ = x[CodeAborted-10]
_ = x[CodeOutOfRange-11]
_ = x[CodeUnimplemented-12]
_ = x[CodeInternal-13]
_ = x[CodeUnavailable-14]
_ = x[CodeDataLoss-15]
_ = x[CodeUnauthenticated-16]
}
const _Code_name = "OKCanceledUnknownInvalidArgumentDeadlineExceededNotFoundAlreadyExistsPermissionDeniedResourceExhaustedFailedPreconditionAbortedOutOfRangeUnimplementedInternalUnavailableDataLossUnauthenticated"
var _Code_index = [...]uint8{0, 2, 10, 17, 32, 48, 56, 69, 85, 102, 120, 127, 137, 150, 158, 169, 177, 192}
func (i Code) String() string {
if i >= Code(len(_Code_index)-1) {
return "Code(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Code_name[_Code_index[i]:_Code_index[i+1]]
}