github.com/apache/arrow/go/v14@v14.0.1/parquet/version_string.go (about) 1 // Code generated by "stringer -type=Version -linecomment"; DO NOT EDIT. 2 3 package parquet 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[V1_0-0] 12 _ = x[V2_4-1] 13 _ = x[V2_6-2] 14 } 15 16 const _Version_name = "v1.0v2.4v2.6" 17 18 var _Version_index = [...]uint8{0, 4, 8, 12} 19 20 func (i Version) String() string { 21 if i < 0 || i >= Version(len(_Version_index)-1) { 22 return "Version(" + strconv.FormatInt(int64(i), 10) + ")" 23 } 24 return _Version_name[_Version_index[i]:_Version_index[i+1]] 25 }