[go-nuts] Re: testing examples printing to stdout not working for global var

2022-05-02 Thread psi....@gmail.com
e 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 package > https://pkg.g

[go-nuts] testing examples printing to stdout not working for global var

2022-05-01 Thread psi....@gmail.com
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