go-hep.org/x/hep@v0.38.1/groot/internal/rcompress/kind_string.go (about) 1 // Code generated by "stringer -type Kind"; DO NOT EDIT. 2 3 package rcompress 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[Inherit - -1] 12 _ = x[UseGlobal-0] 13 _ = x[ZLIB-1] 14 _ = x[LZMA-2] 15 _ = x[OldCompression-3] 16 _ = x[LZ4-4] 17 _ = x[ZSTD-5] 18 _ = x[UndefinedCompression-6] 19 } 20 21 const _Kind_name = "InheritUseGlobalZLIBLZMAOldCompressionLZ4ZSTDUndefinedCompression" 22 23 var _Kind_index = [...]uint8{0, 7, 16, 20, 24, 38, 41, 45, 65} 24 25 func (i Kind) String() string { 26 i -= -1 27 if i < 0 || i >= Kind(len(_Kind_index)-1) { 28 return "Kind(" + strconv.FormatInt(int64(i+-1), 10) + ")" 29 } 30 return _Kind_name[_Kind_index[i]:_Kind_index[i+1]] 31 }