An ErrorHandler may be provided to Scanner.Init. If a syntax error is encountered and a handler was installed, the handler is called with a position and an error message. The position points to the beginning of the offending token.
See also:
Alias
alias for
(go._internal.go_.token.Position, go.GoString) ‑> Void