...

Source file src/cmd/internal/obj/abi_string.go

Documentation: cmd/internal/obj

     1  // Code generated by "stringer -type ABI"; DO NOT EDIT.
     2  
     3  package obj
     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[ABI0-0]
    12  	_ = x[ABIInternal-1]
    13  	_ = x[ABICount-2]
    14  }
    15  
    16  const _ABI_name = "ABI0ABIInternalABICount"
    17  
    18  var _ABI_index = [...]uint8{0, 4, 15, 23}
    19  
    20  func (i ABI) String() string {
    21  	if i >= ABI(len(_ABI_index)-1) {
    22  		return "ABI(" + strconv.FormatInt(int64(i), 10) + ")"
    23  	}
    24  	return _ABI_name[_ABI_index[i]:_ABI_index[i+1]]
    25  }
    26  

View as plain text