type A stringtype B []stringfunc main() { one := "string" two := []string{"string"} var a A var b B b = two a = one // cannot use one (type string) as type A in assignment}
a=oneb=two
type A stringtype B []stringfunc main() { one := "string" two := []string{"string"} var a A var b B b = two a = one // cannot use one (type string) as type A in assignment}
a=oneb=two