github.com/apache/arrow/go/v14@v14.0.1/arrow/unionmode_string.go (about) 1 // Code generated by "stringer -type=UnionMode -linecomment"; DO NOT EDIT. 2 3 package arrow 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[SparseMode-2] 12 _ = x[DenseMode-3] 13 } 14 15 const _UnionMode_name = "SPARSEDENSE" 16 17 var _UnionMode_index = [...]uint8{0, 6, 11} 18 19 func (i UnionMode) String() string { 20 i -= 2 21 if i < 0 || i >= UnionMode(len(_UnionMode_index)-1) { 22 return "UnionMode(" + strconv.FormatInt(int64(i+2), 10) + ")" 23 } 24 return _UnionMode_name[_UnionMode_index[i]:_UnionMode_index[i+1]] 25 }