[go-nuts] Re: [Go Spec]Confused about Assignability in Golang Specification

2020-02-23 Thread Jimu Yang
al type strarr []string var strings []string = []string{"sfw"} var strs strarr = strings // pointer literal type stringptr *string var string1 string = "11" var ptr stringptr = &string1 在 2020年2月23日星期日 UTC+8下午9:19:34,Jimu Yang写道: > > I am reading the doc about Assi

[go-nuts] [Go Spec]Confused about Assignability in Golang Specification

2020-02-23 Thread Jimu Yang
I am reading the doc about Assignability in Golang Specification . It says: A value x is *assignable* to a variable of type T ("x is assignable to T") if one of the following conditions applies: - ... - x