github.com/zxy12/go_duplicate_1_12@v0.0.0-20200217043740-b1636fc0368b/src/cmd/internal/obj/abi_string.go (about)

     1  // Code generated by "stringer -type ABI"; DO NOT EDIT.
     2  
     3  package obj
     4  
     5  import "strconv"
     6  
     7  const _ABI_name = "ABI0ABIInternalABICount"
     8  
     9  var _ABI_index = [...]uint8{0, 4, 15, 23}
    10  
    11  func (i ABI) String() string {
    12  	if i >= ABI(len(_ABI_index)-1) {
    13  		return "ABI(" + strconv.FormatInt(int64(i), 10) + ")"
    14  	}
    15  	return _ABI_name[_ABI_index[i]:_ABI_index[i+1]]
    16  }