cuelang.org/go@v0.10.1/encoding/jsonschema/schemaversion_string.go (about) 1 // Code generated by "stringer -type=schemaVersion -linecomment"; DO NOT EDIT. 2 3 package jsonschema 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[versionUnknown-0] 12 _ = x[versionDraft04-1] 13 _ = x[versionDraft06-2] 14 _ = x[versionDraft07-3] 15 _ = x[version2019_09-4] 16 _ = x[version2020_12-5] 17 _ = x[numVersions-6] 18 } 19 20 const _schemaVersion_name = "unknownhttp://json-schema.org/draft-04/schema#http://json-schema.org/draft-06/schema#http://json-schema.org/draft-07/schema#https://json-schema.org/draft/2019-09/schemahttps://json-schema.org/draft/2020-12/schemaunknown" 21 22 var _schemaVersion_index = [...]uint8{0, 7, 46, 85, 124, 168, 212, 219} 23 24 func (i schemaVersion) String() string { 25 if i < 0 || i >= schemaVersion(len(_schemaVersion_index)-1) { 26 return "schemaVersion(" + strconv.FormatInt(int64(i), 10) + ")" 27 } 28 return _schemaVersion_name[_schemaVersion_index[i]:_schemaVersion_index[i+1]] 29 }