mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2024-11-25 03:52:02 -08:00
modify sample code of README
This commit is contained in:
parent
ac5b066815
commit
9f06690c49
@ -124,7 +124,7 @@ func main() {
|
|||||||
router := xmpp.NewRouter()
|
router := xmpp.NewRouter()
|
||||||
router.HandleFunc("message", handleMessage)
|
router.HandleFunc("message", handleMessage)
|
||||||
|
|
||||||
client, err := xmpp.NewClient(config, router, errorHandler)
|
client, err := xmpp.NewClient(&config, router, errorHandler)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("%+v", err)
|
log.Fatalf("%+v", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user