changeset 57 | e6cb3f049137 |
parent 36 | 9fe022261dcc |
child 63 | c7f2edd25f4a |
--- a/examples/interact.go Thu Jan 05 19:53:37 2012 -0700 +++ b/examples/interact.go Thu Jan 05 23:14:14 2012 -0700 @@ -34,10 +34,10 @@ if err != nil { log.Fatalf("StartSession: %v", err) } - roster := c.Roster() + roster := xmpp.Roster(c) fmt.Printf("%d roster entries:\n", len(roster)) - for jid, entry := range(roster) { - fmt.Printf("%s: %v\n", jid, entry) + for i, entry := range(roster) { + fmt.Printf("%d: %v\n", i, entry) } go func(ch <-chan xmpp.Stanza) {