• Martin Möhrmann's avatar
    fmt: cleanup %p and %T code paths · b8ddcc0a
    Martin Möhrmann authored
    Remove check for %p and %T in printValue.
    These verbs are not recursive and are handled already in
    printArg which is called on any argument before printValue.
    
    Format the type string for %T directly instead of invoking
    the more complex printArg with %s on the type string.
    
    Decouple the %T tests from variables declared in scan_test.go.
    
    Change-Id: Ibd51566bd4cc1a260ce6d052f36382ed05020b48
    Reviewed-on: https://go-review.googlesource.com/20622
    Run-TryBot: Rob Pike <r@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarRob Pike <r@golang.org>
    b8ddcc0a
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...