gopkg.in/hugelgupf/u-root.v2@v2.0.0-20180831055005-3f8fdb0ce09d/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  }