go/src/debug
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
..
dwarf all: add more uses of stringer 2018-02-19 21:33:14 +00:00
elf debug/elf: add relocation constants 2017-10-11 16:40:10 +00:00
gosym debug/gosym: update docs for changes in Go 1.3 2017-11-30 22:49:27 +00:00
macho debug/macho: fill Rpath.LoadBytes in NewFile 2017-09-27 04:01:40 +00:00
pe cmd/link: actually generate .debug_gdb_scripts section on windows 2017-05-15 06:16:19 +00:00
plan9obj all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00