forked from External/ergo
expose various go internals as a DEBUG command
This commit is contained in:
parent
f482b6b82f
commit
3b56b5bf42
4 changed files with 67 additions and 0 deletions
|
|
@ -74,6 +74,9 @@ func (socket *Socket) Read() <-chan string {
|
|||
}
|
||||
|
||||
func (socket *Socket) Write(lines ...string) (err error) {
|
||||
if socket.closed {
|
||||
return io.EOF
|
||||
}
|
||||
for _, line := range lines {
|
||||
err = socket.WriteLine(line)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue