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() {
for {
chat, err := talk.Recv() chat, err := talk.Recv()
if err != nil { if err != nil {
log.Fatal(err) 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("")