Wow!!, Thank you I think test files do not work in "Play golang" , but it seems work fine
I learn a new trick again. messju mohr於 2018年8月13日星期一 UTC+8下午10時52分43秒寫道: > > Here is a running version that shows the original poster's problem: > <https://play.golang.org/p/mMokBBao8nQ> > > On Mon, Aug 13, 2018 at 07:16:08AM -0700, gary.wi...@victoriaplumb.com > <javascript:> wrote: > > Your program doesn't work. > > > > On Saturday, 11 August 2018 09:10:04 UTC+1, 子風 wrote: > > > > Hi > > [1]https://play.golang.org/p/AIB-yJaExVu > > When I want to use examples to test my code, I find something odd. > > Example1 could pass, but Example2 failed > > > > --- FAIL: Example2 (0.00s) > > got: > > hello > > . > > > > 123 > > want: > > hello > > . > > 123 > > FAIL > > exit status 1 > > > > It seems Examples could only show one newline. > > Is there a solution to solve it? Thanks > > > > -- > > 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 [2]golang-nuts...@googlegroups.com <javascript:>. > > For more options, visit [3]https://groups.google.com/d/optout. > > > > References > > > > Visible links > > 1. https://play.golang.org/p/AIB-yJaExVu > > 2. mailto:golang-nuts+unsubscr...@googlegroups.com <javascript:> > > 3. https://groups.google.com/d/optout > > -- 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. For more options, visit https://groups.google.com/d/optout.