5 // LexerError implements the error interface and represents all possible errors that can be
6 // generated during parsing the JSON data.
7 type LexerError struct {
13 func (l *LexerError) Error() string {
14 return fmt.Sprintf("parse error: %s near offset %d of '%s'", l.Reason, l.Offset, l.Data)