Number returns true if v contains a number value.
()
| 332 | |
| 333 | // Number returns true if v contains a number value. |
| 334 | func (v RawValue) Number() bool { |
| 335 | if len(v) != 0 { |
| 336 | switch v[0] { |
| 337 | case '-', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9': |
| 338 | return true |
| 339 | } |
| 340 | } |
| 341 | return false |
| 342 | } |
| 343 | |
| 344 | // AppendUnquote writes the unquoted version of the string value in v into b. |
| 345 | func (v RawValue) AppendUnquote(b []byte) []byte { |
no outgoing calls
no test coverage detected