github.com/llir/llvm@v0.3.6/ir/enum/checksumkind_string.go (about) 1 // Code generated by "stringer -linecomment -type ChecksumKind"; DO NOT EDIT. 2 3 package enum 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[ChecksumKindMD5-1] 12 _ = x[ChecksumKindSHA1-2] 13 } 14 15 const _ChecksumKind_name = "CSK_MD5CSK_SHA1" 16 17 var _ChecksumKind_index = [...]uint8{0, 7, 15} 18 19 func (i ChecksumKind) String() string { 20 i -= 1 21 if i >= ChecksumKind(len(_ChecksumKind_index)-1) { 22 return "ChecksumKind(" + strconv.FormatInt(int64(i+1), 10) + ")" 23 } 24 return _ChecksumKind_name[_ChecksumKind_index[i]:_ChecksumKind_index[i+1]] 25 }