(v float64, bitSize int)
| 89 | } |
| 90 | |
| 91 | func (h HeaderValue) float(v float64, bitSize int) { |
| 92 | switch { |
| 93 | case math.IsNaN(v): |
| 94 | h.String(floatNaN) |
| 95 | case math.IsInf(v, 1): |
| 96 | h.String(floatInfinity) |
| 97 | case math.IsInf(v, -1): |
| 98 | h.String(floatNegInfinity) |
| 99 | default: |
| 100 | h.modifyHeader(strconv.FormatFloat(v, 'f', -1, bitSize)) |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | // BigInteger encodes the value v as a query string value |
| 105 | func (h HeaderValue) BigInteger(v *big.Int) { |
no test coverage detected