github.com/riscv/riscv-go@v0.0.0-20200123204226-124ebd6fcc8e/src/math/big/accuracy_string.go (about) 1 // generated by stringer -type=Accuracy; DO NOT EDIT 2 3 package big 4 5 import "fmt" 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+1 >= Accuracy(len(_Accuracy_index)) { 14 return fmt.Sprintf("Accuracy(%d)", i+-1) 15 } 16 return _Accuracy_name[_Accuracy_index[i]:_Accuracy_index[i+1]] 17 }