"Fossies" - the Fresh Open Source Software Archive

Member "go/src/math/big/accuracy_string.go" (9 Sep 2020, 414 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=Accuracy"; DO NOT EDIT.
    2 
    3 package big
    4 
    5 import "strconv"
    6 
    7 const _Accuracy_name = "BelowExactAbove"
    8 
    9 var _Accuracy_index = [...]uint8{0, 5, 10, 15}
   10 
   11 func (i Accuracy) String() string {
   12     i -= -1
   13     if i < 0 || i >= Accuracy(len(_Accuracy_index)-1) {
   14         return "Accuracy(" + strconv.FormatInt(int64(i+-1), 10) + ")"
   15     }
   16     return _Accuracy_name[_Accuracy_index[i]:_Accuracy_index[i+1]]
   17 }