go/src/debug/dwarf
Daniel Martí 60cf9ec677 all: add more uses of stringer
By grepping for ]string{$, one can find many manual implementations of
stringer. The debug/dwarf ones needed the new -trimprefix flag, too.

html/template was fairly simple, just implementing the fallback as
stringer would. The changes there are trivial.

The ones in debug/dwarf needed a bit of extra logic since the GoString
wants to use its own format, depending on whether or not the value is
one of the known constants.

Change-Id: I501ea7deaa538fa425c8e9c2bb895f480169273f
Reviewed-on: https://go-review.googlesource.com/77253
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2018-02-19 21:33:14 +00:00
..
testdata
attr_string.go all: add more uses of stringer 2018-02-19 21:33:14 +00:00
buf.go
class_string.go all: add more uses of stringer 2018-02-19 21:33:14 +00:00
const.go all: add more uses of stringer 2018-02-19 21:33:14 +00:00
entry.go debug/dwarf: formStrp uses a 64-bit value for 64-bit DWARF 2018-02-15 18:54:41 +00:00
entry_test.go debug/dwarf: support 64-bit DWARF in byte order check 2017-10-17 04:02:09 +00:00
export_test.go
line.go
line_test.go
open.go debug/dwarf: support 64-bit DWARF in byte order check 2017-10-17 04:02:09 +00:00
tag_string.go all: add more uses of stringer 2018-02-19 21:33:14 +00:00
type.go debug/dwarf: clarify StructField.ByteSize doc 2017-10-18 21:45:30 +00:00
type_test.go
typeunit.go debug/dwarf: support 64-bit DWARF in byte order check 2017-10-17 04:02:09 +00:00
unit.go debug/dwarf: support 64-bit DWARF in byte order check 2017-10-17 04:02:09 +00:00