github.com/oweisse/u-root@v0.0.0-20181109060735-d005ad25fef1/pkg/diskboot/entrytype_string.go (about) 1 // Code generated by "stringer --type=EntryType"; DO NOT EDIT. 2 3 package diskboot 4 5 import "strconv" 6 7 const _EntryType_name = "ElfMultiboot" 8 9 var _EntryType_index = [...]uint8{0, 3, 12} 10 11 func (i EntryType) String() string { 12 if i < 0 || i >= EntryType(len(_EntryType_index)-1) { 13 return "EntryType(" + strconv.FormatInt(int64(i), 10) + ")" 14 } 15 return _EntryType_name[_EntryType_index[i]:_EntryType_index[i+1]] 16 }