| 1 |
// Code generated by "stringer -type=Accuracy"; DO NOT EDIT. |
| 2 |
|
| 3 |
package big |
| 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[Below - -1] |
| 12 |
_ = x[Exact-0] |
| 13 |
_ = x[Above-1] |
| 14 |
} |
| 15 |
|
| 16 |
const _Accuracy_name = "BelowExactAbove" |
| 17 |
|
| 18 |
var _Accuracy_index = [...]uint8{0, 5, 10, 15} |
| 19 |
|
| 20 |
func (i Accuracy) String() string { |
| 21 |
i -= -1 |
| 22 |
if i < 0 || i >= Accuracy(len(_Accuracy_index)-1) { |
| 23 |
return "Accuracy(" + strconv.FormatInt(int64(i+-1), 10) + ")" |
| 24 |
} |
| 25 |
return _Accuracy_name[_Accuracy_index[i]:_Accuracy_index[i+1]] |
| 26 |
} |