This commit is contained in:
mattn 2011-06-27 16:36:36 +09:00
parent 2644d2a47e
commit 986d7a0046

View File

@ -30,11 +30,13 @@ func main() {
} }
go func() { go func() {
chat, err := talk.Recv() for {
if err != nil { chat, err := talk.Recv()
log.Fatal(err) if err != nil {
log.Fatal(err)
}
fmt.Println(chat.Remote, chat.Text)
} }
fmt.Println(chat.Remote, chat.Text)
}() }()
for { for {
line, err := readin.RepeatPrompt("") line, err := readin.RepeatPrompt("")