fmt: improve handling of zero padding
fmt: improve handling of zero padding

Simplify the handling of zero padding in fmt_integer and
fmt_float to not require any adjustment of the format flags.

Note that f.zero can only be true when padding to the left
and f.wid is always greater than or equal to 0.

Change-Id: I204b57d103c0eac13d86995992f2b26209196925
Reviewed-on: https://go-review.googlesource.com/21185
Run-TryBot: Rob Pike <4dc7c9ec434ed06502767136789763ec11d2c4b7@golang.org>
TryBot-Result: Gobot Gobot <66cb808b70d30c07676d5e946fee83fd561249e5@golang.org>
Reviewed-by: Rob Pike <4dc7c9ec434ed06502767136789763ec11d2c4b7@golang.org>

akutz/go,akutz/go,ImJasonH/go,miolini/go,linux-on-ibm-z/go,suncycheng/go,CAFxX/go,christopher-henderson/Go,josharian/go,Cofyc/go,theif519/go,4ad/go,momchil-velikov/go,vanloswang/go,miolini/go,codestation/go,josharian/go,goodlang/good,linux-on-ibm-z/go,suncycheng/go,akutz/go,nawawi/go,Cofyc/go,nawawi/go,suncycheng/go,cloudflare/go,cloudflare/go,codestation/go,ganboing/go-esx,codestation/go,momchil-velikov/go,ImJasonH/go,polyverse-security/go,ganboing/go-esx,goodlang/good,ganboing/go-esx,golang/go,4ad/go,ganboing/go-esx,golang/go,derekmarcotte/go,ganboing/go-esx,polyverse-security/go,linux-on-ibm-z/go,nawawi/go,polyverse-security/go,miolini/go,momchil-velikov/go,suncycheng/go,vsekhar/elastic-go,Cofyc/go,goodlang/good,codestation/go,4ad/go,goodlang/good,golang/go,cloudflare/go,goodlang/good,golang/go,ganboing/go-esx,nawawi/go,vsekhar/elastic-go,suncycheng/go,4ad/go,codestation/go,josharian/go,Cofyc/go,theif519/go,linux-on-ibm-z/go,theif519/go,vsekhar/elastic-go,4ad/go,derekmarcotte/go,cloudflare/go,momchil-velikov/go,Cofyc/go,suncycheng/go,vanloswang/go,nawawi/go,vanloswang/go,theif519/go,vanloswang/go,miolini/go,Cofyc/go,cloudflare/go,ImJasonH/go,vanloswang/go,miolini/go,josharian/go,momchil-velikov/go,linux-on-ibm-z/go,akutz/go,vanloswang/go,golang/go,josharian/go,goodlang/good,4ad/go,CAFxX/go,ganboing/go-esx,theif519/go,suncycheng/go,derekmarcotte/go,codestation/go,codestation/go,ganboing/go-esx,goodlang/good,akutz/go,cloudflare/go,vanloswang/go,vsekhar/elastic-go,derekmarcotte/go,CAFxX/go,ImJasonH/go,josharian/go,ImJasonH/go,miolini/go,goodlang/good,polyverse-security/go,momchil-velikov/go,akutz/go,miolini/go,nawawi/go,polyverse-security/go,josharian/go,CAFxX/go,suncycheng/go,ImJasonH/go,vsekhar/elastic-go,akutz/go,akutz/go,linux-on-ibm-z/go,miolini/go,ImJasonH/go,Cofyc/go,vsekhar/elastic-go,golang/go,CAFxX/go,derekmarcotte/go,nawawi/go,4ad/go,derekmarcotte/go,derekmarcotte/go,golang/go,josharian/go,derekmarcotte/go,4ad/go,cloudflare/go,polyverse-security/go,nawawi/go,cloudflare/go,vanloswang/go,theif519/go,codestation/go,momchil-velikov/go,polyverse-security/go,golang/go,linux-on-ibm-z/go,theif519/go,vsekhar/elastic-go,momchil-velikov/go,theif519/go,Cofyc/go,CAFxX/go,ImJasonH/go,polyverse-security/go,linux-on-ibm-z/go,CAFxX/go,vsekhar/elastic-go,CAFxX/go