Re: [go-nuts] gofmt formats different than goimports in go1.11

2018-08-29 Thread Ian Lance Taylor
On Tue, Aug 28, 2018 at 11:58 PM, Rohit Jain wrote: >>Rebuild goimports with Go 1.11. > > Thanks, Ian, > I did go get -v -u golang.org/x/tools/cmd/goimports after removing > `goimports` from $GOPATH/bin, still the same behaviour Ah, OK, in that case make sure you are using the 1.11 version of gof

Re: [go-nuts] gofmt formats different than goimports in go1.11

2018-08-28 Thread Rohit Jain
>Rebuild goimports with Go 1.11. Thanks, Ian, I did *go get -v -u golang.org/x/tools/cmd/goimports *after removing *`goimports` *from *$GOPATH/bin, *still the same behaviour On Wed, Aug 29, 2018 at 5:24 AM Ian Lance Taylor wrote: > On Tue, Aug 28, 2018

Re: [go-nuts] gofmt formats different than goimports in go1.11

2018-08-28 Thread Ian Lance Taylor
On Tue, Aug 28, 2018 at 10:26 AM, Rohit Jain wrote: > > ```err := testService.test.UpdateWithQuery( > ctx, > bson.M{ > -"id": campaignID, > +"id": campaignID, > "x_yyy.testing":

Re: [go-nuts] gofmt formats different than goimports in go1.11

2018-08-28 Thread David Collier-Brown
> > > It was funnier inside my head. > > Sounded grumpy from out here. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com

Re: [go-nuts] gofmt formats different than goimports in go1.11

2018-08-28 Thread Matthias B.
On Tue, 28 Aug 2018 22:56:24 +0530 Rohit Jain wrote: > > how do I solve this? > Wait for goimports to be updated. Until then, increase the dose of your OCD medication till you stop caring about the difference. MSB -- It was funnier inside my head. -- You received this message because you

[go-nuts] gofmt formats different than goimports in go1.11

2018-08-28 Thread Rohit Jain
```err := testService.test.UpdateWithQuery( ctx, bson.M{ -"id": campaignID, +"id": campaignID, "x_yyy.testing": x.y, }, ``` gofmt reports above diff ``