• Russ Cox's avatar
    govet: check canonical dynamic method signatures · b0ec32db
    Russ Cox authored
    Adds check that, for example, a Scan method taking
    a first argument of type fmt.ScanState has the correct
    signature to satisfy fmt.Scanner.
    
    Similarly, a ReadByte should return byte, os.Error.
    
    These are important to check because various pieces
    of code (fmt, gob, json, flate) do dynamic checks
    for these methods, so code with incorrect signatures
    would not be flagged at compile time.
    
    These become even more important to check when
    rune is introduced.
    
    R=r
    CC=golang-dev
    https://golang.org/cl/5305044
    b0ec32db
Name
Last commit
Last update
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...