Debian Codegraph @

docstore/driver/actionkind_string.go

raw
1 // Code generated by "stringer -type=ActionKind"; DO NOT EDIT.
2
3 package driver
4
5 import "strconv"
6
7 func _() {
8 // An "invalid array index" compiler error signifies that the constant values have changed.
9 // Re-run the stringer command to generate them again.
10 var x [1]struct{}
11 _ = x[Create-0]
12 _ = x[Replace-1]
13 _ = x[Put-2]
14 _ = x[Get-3]
15 _ = x[Delete-4]
16 _ = x[Update-5]
17 }
18
19 const _ActionKind_name = "CreateReplacePutGetDeleteUpdate"
20
21 var _ActionKind_index = [...]uint8{0, 6, 13, 16, 19, 25, 31}
22
23 func (i ActionKind) String() string {
24 if i < 0 || i >= ActionKind(len(_ActionKind_index)-1) {
25 return "ActionKind(" + strconv.FormatInt(int64(i), 10) + ")"
26 }
27 return _ActionKind_name[_ActionKind_index[i]:_ActionKind_index[i+1]]
28 }