!50 完成InterIO.go:SendLine函数

Merge pull request !50 from a-alpha/alpha-dev
This commit is contained in:
a-alpha 2022-11-07 04:57:43 +00:00 committed by Gitee
commit adde171560
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
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
}