code: func (r *Lexer) Consumed() {
  	if r.pos > len(r.Data) || !r.Ok() {
  		return
  	}
  
  	for _, c := range r.Data[r.pos:] {
  		if c != ' ' && c != '\t' && c != '\r' && c != '\n' {
  			r.AddError(&LexerError{
  				Reason: "invalid character '" + string(c) + "' after top-level value",
  				Offset: r.pos,
  				Data:   string(r.Data[r.pos:]),
  			})
  			return
  		}
  
  		r.pos++
  		r.start++
  	}
  }
docs: // Consumed reads all remaining bytes from the input, publishing an error if
  // there is anything but whitespace remaining.