mirror of https://gitee.com/openkylin/genmai.git
!50 完成InterIO.go:SendLine函数
Merge pull request !50 from a-alpha/alpha-dev
This commit is contained in:
commit
adde171560
|
@ -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