You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package main
func main() {
mitem := []interface{}{}
item := []string{"nnn", "nnn"}
mitem = append(mitem, item...)
}
cannot use (type []string) as type []interface {} in append
http://play.golang.org/p/BCm28pzk2P
I think that this is not entirely correct, because
mitem = append(mitem, item[0]) is a good work.