1
0
Fork 0
forked from External/ergo

expose various go internals as a DEBUG command

This commit is contained in:
Jeremy Latt 2014-02-23 10:04:31 -08:00
parent f482b6b82f
commit 3b56b5bf42
4 changed files with 67 additions and 0 deletions

View file

@ -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 {