examples/interact.go
changeset 105 aa895dfae3f6
parent 103 f27f78706623
child 109 3887d7ad19c1
equal deleted inserted replaced
104:99e03b33b20d 105:aa895dfae3f6
     4 
     4 
     5 package main
     5 package main
     6 
     6 
     7 import (
     7 import (
     8 	xmpp ".."
     8 	xmpp ".."
       
     9 	"crypto/tls"
     9 	"flag"
    10 	"flag"
    10 	"fmt"
    11 	"fmt"
    11 	"log"
    12 	"log"
    12 	"os"
    13 	"os"
    13 )
    14 )
    26 func init() {
    27 func init() {
    27 	logger := &StdLogger{}
    28 	logger := &StdLogger{}
    28 	xmpp.Debug = logger
    29 	xmpp.Debug = logger
    29 	xmpp.Info = logger
    30 	xmpp.Info = logger
    30 	xmpp.Warn = logger
    31 	xmpp.Warn = logger
       
    32 
       
    33 	xmpp.TlsConfig = tls.Config{InsecureSkipVerify: true}
    31 }
    34 }
    32 
    35 
    33 // Demonstrate the API, and allow the user to interact with an XMPP
    36 // Demonstrate the API, and allow the user to interact with an XMPP
    34 // server via the terminal.
    37 // server via the terminal.
    35 func main() {
    38 func main() {