"Fossies" - the Fresh Open Source Software Archive

Member "go/src/cmd/internal/obj/abi_string.go" (9 Sep 2020, 351 Bytes) of package /windows/misc/go1.14.9.windows-386.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Go source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    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 }