On Tue, Aug 28, 2018 at 11:58 PM, Rohit Jain <jain.rohit.2...@gmail.com> 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 gofmt. Ian > On Wed, Aug 29, 2018 at 5:24 AM Ian Lance Taylor <i...@golang.org> wrote: >> >> On Tue, Aug 28, 2018 at 10:26 AM, Rohit Jain <jain.rohit.2...@gmail.com> >> wrote: >> > >> > ```err := testService.test.UpdateWithQuery( >> > ctx, >> > bson.M{ >> > - "id": campaignID, >> > + "id": campaignID, >> > "xxxxx_yyyyyyy.testing": xxxxx.yyyyy, >> > }, >> > ``` >> > gofmt reports above diff >> > >> > >> > ```err := testService.test.UpdateWithQuery( >> > ctx, >> > bson.M{ >> > - "id": campaignID, >> > + "id": campaignID, >> > "xxxxx_yyyyyyy.testing": xxxxx.yyyyy, >> > }, >> > ``` >> > >> > goimport reports above diff >> > >> > if I correct the `goimports` suggrstion , gofmt reports the error and >> > vice >> > -versa. >> > >> > how do I solve this? >> >> Rebuild goimports with Go 1.11. >> >> Ian > > > > -- > Rohit Jain -- 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. For more options, visit https://groups.google.com/d/optout.