Re: [go-nuts] Suppress GoFmt-generated error with/tools.go?

2024-09-02 Thread Mike Schinkel
> On Sep 2, 2024, at 8:40 PM, Ian Lance Taylor wrote: > > On Sun, Sep 1, 2024 at 1:08 AM Mike Schinkel wrote: >> >> Ian — if you are reading this — does this rise enough to the level of a bug >> — checking imports on a `go fmt` — that I should submit as an issue on >> GitHub? > > This is, pe

Re: [go-nuts] Suppress GoFmt-generated error with/tools.go?

2024-09-02 Thread Ian Lance Taylor
On Sun, Sep 1, 2024 at 1:08 AM Mike Schinkel wrote: > > Ian — if you are reading this — does this rise enough to the level of a bug — > checking imports on a `go fmt` — that I should submit as an issue on GitHub? This is, perhaps unfortunately, expected behavior. The "go fmt" command is the "fm

Re: [go-nuts] Iterators

2024-09-02 Thread Ian Lance Taylor
On Mon, Sep 2, 2024 at 4:36 PM vignes waran wrote: > > I have been trying to understand the concept of iterators introduced in the > new Go 1.23 release, but I’m struggling to comprehend how the iteration call > happens multiple times and where the boolean value for stopping the loop is > obtai

[go-nuts] Iterators

2024-09-02 Thread vignes waran
I have been trying to understand the concept of iterators introduced in the new Go 1.23 release, but I’m struggling to comprehend how the iteration call happens multiple times and where the boolean value for stopping the loop is obtained. Here’s my code snippet for reference: package main import