https://play.golang.org/p/8ADwHokqcK5 complains with:
prog.go:6:12: cannot use x (type []T) as type []byte in argument to runtime.slicebytetostring
The error message should not mention runtime.slicebytetostring which is an implementation detail.
(There are probably more error situations that expose runtime calls this way. Should handle them all uniformly.)
https://play.golang.org/p/8ADwHokqcK5 complains with:
The error message should not mention
runtime.slicebytetostringwhich is an implementation detail.(There are probably more error situations that expose runtime calls this way. Should handle them all uniformly.)