Re: [go-nuts] intentional fmt spacing behavior in for statement initializer ?

2018-02-19 Thread Ian Lance Taylor
On Mon, Feb 19, 2018 at 11:11 AM, wrote: > https://play.golang.org/p/Pvhg_npsg3Y > > (padded with spaces - press fmt for output) > > > output : > > package main > > > import "fmt" > > > func main() { > > i, h, rs := 1, 1000, 160 > > > for y := i * (h / rs); y < (1+i)*(h/rs);

[go-nuts] intentional fmt spacing behavior in for statement initializer ?

2018-02-19 Thread xiofen77
https://play.golang.org/p/Pvhg_npsg3Y (padded with spaces - press fmt for output) output : package main import "fmt" func main() { i, h, rs := 1, 1000, 160 for y := i * (h / rs); y < (1+i)*(h/rs); y++ { fmt.Println(y) } } note the extra