* Tong Sun <suntong...@gmail.com> [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 identifier on left side of :=
> 
> 
> And get this when trying to *run*:
> 
> main.go:29: non-name ft.f on left side of :=

Note that := is "short variable declaration" and must have an identifier
or list of identifiers on the left.  It cannot, by definition, have a
member of a struct on the left.

...Marvin

-- 
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.

Reply via email to