forked from jshiffer/go-xmpp
loop
This commit is contained in:
parent
2644d2a47e
commit
986d7a0046
10
example.go
10
example.go
@ -30,11 +30,13 @@ func main() {
|
||||
}
|
||||
|
||||
go func() {
|
||||
chat, err := talk.Recv()
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
for {
|
||||
chat, err := talk.Recv()
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
fmt.Println(chat.Remote, chat.Text)
|
||||
}
|
||||
fmt.Println(chat.Remote, chat.Text)
|
||||
}()
|
||||
for {
|
||||
line, err := readin.RepeatPrompt("")
|
||||
|
Loading…
Reference in New Issue
Block a user