...
Run Format

Source file src/debug/dwarf/class_string.go

Documentation: debug/dwarf

     1  // generated by stringer -type=Class; DO NOT EDIT
     2  
     3  package dwarf
     4  
     5  import "fmt"
     6  
     7  const _Class_name = "ClassUnknownClassAddressClassBlockClassConstantClassExprLocClassFlagClassLinePtrClassLocListPtrClassMacPtrClassRangeListPtrClassReferenceClassReferenceSigClassStringClassReferenceAltClassStringAlt"
     8  
     9  var _Class_index = [...]uint8{0, 12, 24, 34, 47, 59, 68, 80, 95, 106, 123, 137, 154, 165, 182, 196}
    10  
    11  func (i Class) String() string {
    12  	if i < 0 || i+1 >= Class(len(_Class_index)) {
    13  		return fmt.Sprintf("Class(%d)", i)
    14  	}
    15  	return _Class_name[_Class_index[i]:_Class_index[i+1]]
    16  }
    17  

View as plain text