github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/compile/internal/gc/class_string.go (about) 1 // Code generated by "stringer -type=Class"; DO NOT EDIT. 2 3 package gc 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[Pxxx-0] 12 _ = x[PEXTERN-1] 13 _ = x[PAUTO-2] 14 _ = x[PAUTOHEAP-3] 15 _ = x[PPARAM-4] 16 _ = x[PPARAMOUT-5] 17 _ = x[PFUNC-6] 18 } 19 20 const _Class_name = "PxxxPEXTERNPAUTOPAUTOHEAPPPARAMPPARAMOUTPFUNC" 21 22 var _Class_index = [...]uint8{0, 4, 11, 16, 25, 31, 40, 45} 23 24 func (i Class) String() string { 25 if i >= Class(len(_Class_index)-1) { 26 return "Class(" + strconv.FormatInt(int64(i), 10) + ")" 27 } 28 return _Class_name[_Class_index[i]:_Class_index[i+1]] 29 }