...
1
2
3 package watcher
4
5 import "strconv"
6
7 func _() {
8
9
10 var x [1]struct{}
11 _ = x[RESTScopeAutomatic-0]
12 _ = x[RESTScopeRoot-1]
13 _ = x[RESTScopeNamespace-2]
14 }
15
16 const _RESTScopeStrategy_name = "automaticrootnamespace"
17
18 var _RESTScopeStrategy_index = [...]uint8{0, 9, 13, 22}
19
20 func (i RESTScopeStrategy) String() string {
21 if i < 0 || i >= RESTScopeStrategy(len(_RESTScopeStrategy_index)-1) {
22 return "RESTScopeStrategy(" + strconv.FormatInt(int64(i), 10) + ")"
23 }
24 return _RESTScopeStrategy_name[_RESTScopeStrategy_index[i]:_RESTScopeStrategy_index[i+1]]
25 }
26
View as plain text