Merge pull request #13 from hypafrag/xml_charset_reader_support

added charsets support
This commit is contained in:
Mickaël Rémond
2019-01-17 12:03:37 +01:00
committed by GitHub
2 changed files with 6 additions and 1 deletions

View File

@@ -1,6 +1,9 @@
package xmpp // import "gosrc.io/xmpp"
import "os"
import (
"io"
"os"
)
type Config struct {
Address string
@@ -12,4 +15,5 @@ type Config struct {
Retry int // Number of retries for connect
ConnectTimeout int // Connection timeout in seconds. Default to 15
Insecure bool // set to true to allow comms without TLS
CharsetReader func(charset string, input io.Reader) (io.Reader, error) // passed to xml decoder
}