Re: [go-nuts] Save file handle into struct

2017-06-07 Thread Marvin Renich
* Tong Sun [170607 15:53]: > So, Here is the update version. > > 1. https://play.golang.org/p/txOIO1riwd > 2. https://play.golang.org/p/_Qk9n0mZPM > > The two version only differ on line 26 & 29. However, the second one will > get the following while trying to do *gofmt*: > > 29:2: expected i

Re: [go-nuts] Save file handle into struct

2017-06-06 Thread Tong Sun
On Tue, Jun 6, 2017 at 5:50 PM, Sebastien Binet wrote: > like so: > https://play.golang.org/p/s-7h25c5jW > duh. 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 e

Re: [go-nuts] Save file handle into struct

2017-06-06 Thread Sebastien Binet
like so: https://play.golang.org/p/s-7h25c5jW On Tue, Jun 6, 2017 at 11:47 PM, Tong Sun wrote: > Hi, > > How to save the file handle into struct? > > So in this file, > https://play.golang.org/p/SWnJ4TZyTu > > If I change line 34 "ft.f" to just "f", it will at least pass gofmt. Else, > I'll get