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
Conversions to and from a string type
Converting a signed or unsigned integer value to a string type yields a string containing the UTF-8 representation of the integer
The fact that this is bad is #3939, labelled go2 since it can't be changed now (because of the Go 1 compatibility promise).
Go 1.7.3
What did you do?
string(1)
https://play.golang.org/p/rut8mpiipO
What did you expect to see?
"cannot convert 1 to type string" - compile error
What did you see instead?
Integer has been converted in a string empty value.
The text was updated successfully, but these errors were encountered: