modify sample code of README

This commit is contained in:
kizitorashiro 2021-02-14 17:52:18 +09:00
parent ac5b066815
commit 9f06690c49

View File

@ -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)
} }