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
If the length of the slice is less than the length of the array, a run-time error occurs. This means that v.Convert(x.Type()) may panic, even if v.Type().ConvertibleTo(x.Type()) returns true.
The text was updated successfully, but these errors were encountered:
The Go 1.17 version allows convertion from
[]T
to*[N]T
(issue golang/go#395, CL golang/go@1c26843).If the length of the slice is less than the length of the array, a run-time error occurs. This means that
v.Convert(x.Type())
may panic, even ifv.Type().ConvertibleTo(x.Type())
returnstrue
.The text was updated successfully, but these errors were encountered: