Mike,
I get the same results for go1.22 and go1.23 as I got for go (devel go1.24).
I indented the src/cmd/tools/tools.go file import statement by a tab to
force a reformat.
~/go1.22/src/cmd/tools$ go1.22 version
go version go1.22.6 linux/amd64
~/go1.22/src/cmd/tools$ go1.22 fmt
tools.go
~/go1
On Sat, 31 Aug 2024 at 14:22, Mike Schinkel wrote:
> Hi Alex & Peter,
>
> Thank you both for your replies.
>
> On Aug 30, 2024, at 2:43 AM, Axel Wagner
> wrote:
> I don't think that error message comes from gofmt. As far as I am aware,
> gofmt only parses source code, it does not even do type-ch
> On Aug 31, 2024, at 8:29 AM, Jan Mercl <0xj...@gmail.com> wrote:
>
> On Sat, Aug 31, 2024 at 2:22 PM Mike Schinkel wrote:
>
>> go fmt ./tools.go
>
> 'go fmt' is not gofmt.
They are different? Well that is positively confusing.
Thank you for pointing that out, though.
> The OP talks abou
On Sat, Aug 31, 2024 at 2:22 PM Mike Schinkel wrote:
> go fmt ./tools.go
'go fmt' is not gofmt. The OP talks about gofmt. I haven't tried
anything but you may try if using gofmt instead of 'go fmt' makes a
difference.
--
You received this message because you are subscribed to the Google Groups
Hi Alex & Peter,
Thank you both for your replies.
> On Aug 30, 2024, at 2:43 AM, Axel Wagner
> wrote:
> I don't think that error message comes from gofmt. As far as I am aware,
> gofmt only parses source code, it does not even do type-checking.
As you sure about that? Running this:
go fmt .
I would likely go with something similar to how you would currently use
bufio.Scanner but comine the use of .Scan() and .Text() as Range()
```go
iter := rows.Iter(ctx)
for obj := iter.Range {
// do something with obj
}
if err := iter.Err(); err != nil {
return err
}
```
Or if rows can