Closed srlehn closed 4 years ago
(f *os.File) WriteString(s string) is only a call to Write() with the string cast to a []byte.
func (f *File) WriteString(s string) (n int, err error) {
return f.Write([]byte(s))
}
This PR should not change any behaviour. I did replace strings containing a single ASCII char with rune '*', '\n'. The variable rune r in case displayRune must be cast to a string first.
The error I got before changing the writes:
Thank you. Could you please make new global variable?
var linefeed = []byte{'\n'}
done
Thank you
Replace WriteString() calls on *os.File with Write() so that tinygo compiles.