[go-nuts] Re: Can't parse Interface-typed variable, even after substituting a specific type.

2017-02-07 Thread mura_li
On Wednesday, February 8, 2017 at 1:20:22 PM UTC+8, mur...@castech.com.tw wrote: > > Interface imposes a set of restrictions on a object, which makes it useful > in the first place. > If it doesn't, then you won't be able to replace the type of the object > assigned to the interface. > Say, if

[go-nuts] Re: Can't parse Interface-typed variable, even after substituting a specific type.

2017-02-07 Thread mura_li
Interface imposes a set of restrictions on a object, which makes it useful in the first place. If it doesn't, then you won't be able to replace the type of the object assigned to the interface. Say, if you change the type of fooModel to something with different fields, you would have to change a