github.com/go-xe2/third@v1.0.3/golang.org/x/text/internal/number/roundingmode_string.go (about)

     1  // Code generated by "stringer -type RoundingMode"; DO NOT EDIT.
     2  
     3  package number
     4  
     5  import "fmt"
     6  
     7  const _RoundingMode_name = "ToNearestEvenToNearestZeroToNearestAwayToPositiveInfToNegativeInfToZeroAwayFromZeronumModes"
     8  
     9  var _RoundingMode_index = [...]uint8{0, 13, 26, 39, 52, 65, 71, 83, 91}
    10  
    11  func (i RoundingMode) String() string {
    12  	if i >= RoundingMode(len(_RoundingMode_index)-1) {
    13  		return fmt.Sprintf("RoundingMode(%d)", i)
    14  	}
    15  	return _RoundingMode_name[_RoundingMode_index[i]:_RoundingMode_index[i+1]]
    16  }