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
This commit is contained in:
Russ Cox 2008-12-11 16:53:33 -08:00
parent c7ab332744
commit bf67afc84e
3 changed files with 117 additions and 17 deletions

View file

@ -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;