diff options
| author | Russ Cox <rsc@golang.org> | 2008-12-11 16:53:33 -0800 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2008-12-11 16:53:33 -0800 |
| commit | bf67afc84e456e03e5ca14e2e4039497b36051ec (patch) | |
| tree | a03842a7b54412a126054a732637a1921db7f48c /src/lib/fmt/format.go | |
| parent | c7ab3327442ab0a597f0efa7b6a5b465aec28744 (diff) | |
| download | go-bf67afc84e456e03e5ca14e2e4039497b36051ec.tar.xz | |
print field names on struct members.
also don't concatenate strings next
to each other in the struct,
like p.doprint does.
expose additional print flags to formatters
R=r
DELTA=128 (111 added, 11 deleted, 6 changed)
OCL=20991
CL=21018
Diffstat (limited to 'src/lib/fmt/format.go')
| -rw-r--r-- | src/lib/fmt/format.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/fmt/format.go b/src/lib/fmt/format.go index d1c20a513a..4a5dea5f1f 100644 --- a/src/lib/fmt/format.go +++ b/src/lib/fmt/format.go @@ -50,7 +50,9 @@ export type Fmt struct { } func (f *Fmt) clearflags() { + f.wid = 0; f.wid_present = false; + f.prec = 0; f.prec_present = false; f.minus = false; f.plus = false; |
