ng
ng copied to clipboard
typecheck: unexpected implicit string -> []byte conversion
ng> import "bytes"
ng> buf := new(bytes.Buffer)
ng> buf.Write("hello")
int(5)
ng> buf.String()
"hello"
In Go this is an error:
https://play.golang.org/p/43d_2taphY
main.go:7:12: cannot use "hello" (type string) as type []byte in argument to buf.Write
This was accidental, this should be an error in neugram.