this caught me out, is it a bug?
https://go.dev/play/p/atJb8dZHoqi
--
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.
To v
n when the
> tests are run."
>
> In ExampleMain(), you improperly used the os.Stdout variable value as of
> the testing package initialization.
>
> In ExampleMain2(), you properly used the os.Stdout variable value as of
> when the function was run.
>
> testing pack