Use the io.Reader interface

This commit is contained in:
Kovid Goyal
2022-08-18 10:36:04 +05:30
parent a7bc2fcba8
commit 6c3a439455
3 changed files with 25 additions and 3 deletions

View File

@@ -98,7 +98,9 @@ func send_rc_command(rc *utils.RemoteControlCmd, timeout float64) (err error) {
if err != nil {
return
}
println(string(d))
r := utils.BytesReader{Data: d}
println(string(r.Data))
return
}