You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But earlier versions of Go have the following output:
Go version: go1.21.9
true
A bit of digging seems to point to this commit: bc2124d — however, the updated documentation really isn't clear about what return value should be expected under this scenario.
"[Scan] returns false when there are no more tokens"
"...and a nil token with ErrFinalToken immediately stops the scanning."
What did you expect to see?
I expected to see identical behavior between versions.
The text was updated successfully, but these errors were encountered:
Go version
go version go1.22.2 linux/arm64
Output of
go env
in your module/workspace:What did you do?
I have created a simple test program that reproduces the issue:
Playground link: https://go.dev/play/p/HXAIfzWJ_cN
What did you see happen?
Using Go 1.22.2, I get the following output:
But earlier versions of Go have the following output:
A bit of digging seems to point to this commit: bc2124d — however, the updated documentation really isn't clear about what return value should be expected under this scenario.
What did you expect to see?
I expected to see identical behavior between versions.
The text was updated successfully, but these errors were encountered: