mirror of https://gitee.com/openkylin/genmai.git
完成InterIO.go:SendLine函数
This commit is contained in:
parent
d981a76eac
commit
e2201a397e
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue