Rename Options to Config

This commit is contained in:
Mickael Remond
2018-09-26 16:25:04 +02:00
parent 1c3aaad174
commit fa5590e921
6 changed files with 29 additions and 29 deletions

View File

@@ -13,7 +13,7 @@ import (
)
func main() {
options := xmpp.Options{
config := xmpp.Config{
Address: "localhost:5222",
Jid: "test@localhost",
Password: "test",
@@ -21,7 +21,7 @@ func main() {
Insecure: true,
}
client, err := xmpp.NewClient(options)
client, err := xmpp.NewClient(config)
if err != nil {
log.Fatal("Error: ", err)
}