Int returns a byte slice containing the value of the json number that the tokenizer is currently pointing at. This method must only be called after checking the kind of the token via a call to Kind. If the tokenizer is not positioned on an integer, the behavior is undefined.
()
| 253 | // |
| 254 | // If the tokenizer is not positioned on an integer, the behavior is undefined. |
| 255 | func (t *Tokenizer) Int() int64 { |
| 256 | i, _, _ := t.parseInt(t.Value, int64Type) |
| 257 | return i |
| 258 | } |
| 259 | |
| 260 | // Uint returns a byte slice containing the value of the json number that the |
| 261 | // tokenizer is currently pointing at. |
no test coverage detected