• Robert Griesemer's avatar
    go/scanner: clean up error interface · d08dd8be
    Robert Griesemer authored
    Issue 2856 asks for a rename of a few methods to a
    more idiomatic Go style. This is a very early API
    that evolved organically throughout the years.
    Together with the fact that ErrorVectors were embedded
    in other data structures (e.g. Parser), just renaming
    methods (e.g. GetError -> Error) would lead to undesired
    behavior (e.g., Parser would act like an Error). Instead,
    cleaned up API a bit more:
    
    - removed ErrorVector in favor of ErrorList (already
    present)
    - simplified Scanner.Init by making the error handler a
    function instead of requiring an ErrorHandler implementation
    - adjusted helper functions accordingly
    - updated Go 1 doc
    
    Fixes #2856.
    
    R=rsc
    CC=golang-dev
    https://golang.org/cl/5624047
    d08dd8be
Name
Last commit
Last update
..
archive Loading commit data...
bufio Loading commit data...
builtin Loading commit data...
bytes Loading commit data...
compress Loading commit data...
container Loading commit data...
crypto Loading commit data...
database/sql Loading commit data...
debug Loading commit data...
encoding Loading commit data...
errors Loading commit data...
exp Loading commit data...
expvar Loading commit data...
flag Loading commit data...
fmt Loading commit data...
go Loading commit data...
hash Loading commit data...
html Loading commit data...
image Loading commit data...
index/suffixarray Loading commit data...
io Loading commit data...
log Loading commit data...
math Loading commit data...
mime Loading commit data...
net Loading commit data...
old Loading commit data...
os Loading commit data...
path Loading commit data...
reflect Loading commit data...
regexp Loading commit data...
runtime Loading commit data...
sort Loading commit data...
strconv Loading commit data...
strings Loading commit data...
sync Loading commit data...
syscall Loading commit data...
testing Loading commit data...
text Loading commit data...
time Loading commit data...
unicode Loading commit data...
unsafe Loading commit data...
deps.bash Loading commit data...