mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-17 21:18:11 -07:00
expose various go internals as a DEBUG command
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user