完成InterIO.go:SendLine函数

This commit is contained in:
chenxinquan 2022-11-07 12:59:06 +08:00
parent d981a76eac
commit e2201a397e
1 changed files with 4 additions and 1 deletions

View File

@ -42,13 +42,16 @@ type InterIO struct {
///////////////////////////////
// InterIO functions
func (iio InterIO) Send(str string) (rc error) {
_, rc := iio.writer.WriteString(str)
_, rc = iio.writer.WriteString(str)
iio.writer.Flush()
/* */
return rc
}
func (iio InterIO) Sendline(str string) (rc error) {
_, rc = iio.writer.WriteString(str + "\n")
iio.writer.Flush()
/* */
return rc
}