• Rob Pike's avatar
    fmt: unify the printing examples · 5be78668
    Rob Pike authored
    Provide an example for each of the printing functions (Print,
    Sprintf, Fprintln etc.), and make them all produce the same output
    so their usage can be compared.
    
    Also add a package-level example explaining the difference between
    how Printf, Println, and Print behave.
    
    There are more examples to come.
    
    Update #27554.
    
    Change-Id: Ide03e5233f3762a9ee2ac0269f534ab927562ce2
    Reviewed-on: https://go-review.googlesource.com/136615Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    5be78668
Name
Last commit
Last update
..
doc.go Loading commit data...
example_test.go Loading commit data...
export_test.go Loading commit data...
fmt_test.go Loading commit data...
format.go Loading commit data...
gostringer_example_test.go Loading commit data...
print.go Loading commit data...
scan.go Loading commit data...
scan_test.go Loading commit data...
stringer_example_test.go Loading commit data...
stringer_test.go Loading commit data...