unexpectedTokenError returns a syntax error for the given unexpected token.
(tok json.Token)
| 110 | |
| 111 | // unexpectedTokenError returns a syntax error for the given unexpected token. |
| 112 | func (d decoder) unexpectedTokenError(tok json.Token) error { |
| 113 | return d.syntaxError(tok.Pos(), "unexpected token %s", tok.RawString()) |
| 114 | } |
| 115 | |
| 116 | // syntaxError returns a syntax error for given position. |
| 117 | func (d decoder) syntaxError(pos int, f string, x ...any) error { |
no test coverage detected