-
-
Notifications
You must be signed in to change notification settings - Fork 179
/
gen_string.go
30 lines (24 loc) · 859 Bytes
/
gen_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
// Code generated by "stringer -type=RelType -output=./gen_string.go"; DO NOT EDIT.
package sdata
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[RelNone-0]
_ = x[RelOneToOne-1]
_ = x[RelOneToMany-2]
_ = x[RelPolymorphic-3]
_ = x[RelRecursive-4]
_ = x[RelEmbedded-5]
_ = x[RelRemote-6]
_ = x[RelSkip-7]
}
const _RelType_name = "RelNoneRelOneToOneRelOneToManyRelPolymorphicRelRecursiveRelEmbeddedRelRemoteRelSkip"
var _RelType_index = [...]uint8{0, 7, 18, 30, 44, 56, 67, 76, 83}
func (i RelType) String() string {
if i < 0 || i >= RelType(len(_RelType_index)-1) {
return "RelType(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _RelType_name[_RelType_index[i]:_RelType_index[i+1]]
}