On Tue, Feb 27, 2018 at 4:25 PM <k1atti...@gmail.com> wrote:

> Why doesn't work this :

Because types []string and []interface{} are different and not assignable
to each other.

> and Why does it work? :

Because type string implements interface{} (as any other type does),
string is assignable to a variable of type interface{}.



-- 

-j

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