gonum.org/v1/gonum@v0.14.0/graph/formats/rdf/kind_string.go (about) 1 // Code generated by "stringer -type=Kind"; DO NOT EDIT. 2 3 package rdf 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[Invalid-0] 12 _ = x[IRI-1] 13 _ = x[Literal-2] 14 _ = x[Blank-3] 15 } 16 17 const _Kind_name = "InvalidIRILiteralBlank" 18 19 var _Kind_index = [...]uint8{0, 7, 10, 17, 22} 20 21 func (i Kind) String() string { 22 if i < 0 || i >= Kind(len(_Kind_index)-1) { 23 return "Kind(" + strconv.FormatInt(int64(i), 10) + ")" 24 } 25 return _Kind_name[_Kind_index[i]:_Kind_index[i+1]] 26 }