~samwhited/xmpp

3a5d79291c618f5ac03dc34e1e78af5a6e0ad514 — Sam Whited 5 years ago 4756f10
Workaround for Go issue #16497

https://golang.org/issue/16497
3 files changed, 3 insertions(+), 3 deletions(-)

M iq.go
M message.go
M presence.go
M iq.go => iq.go +1 -1
@@ 16,13 16,13 @@ import (
// IQ's are one-to-one, provide get and set semantics, and always require a
// response in the form of a result or an error.
type IQ struct {
	XMLName xml.Name `xml:"iq"`
	ID      string   `xml:"id,attr"`
	Inner   string   `xml:",innerxml"`
	To      *jid.JID `xml:"to,attr"`
	From    *jid.JID `xml:"from,attr"`
	Lang    string   `xml:"http://www.w3.org/XML/1998/namespace lang,attr,omitempty"`
	Type    iqType   `xml:"type,attr"`
	XMLName xml.Name `xml:"iq"`
}

type iqType int

M message.go => message.go +1 -1
@@ 15,13 15,13 @@ import (
// messages to an individual or group chat server, or for notifications and
// alerts that don't require a response.
type Message struct {
	XMLName xml.Name    `xml:"message"`
	ID      string      `xml:"id,attr"`
	Inner   string      `xml:",innerxml"`
	To      *jid.JID    `xml:"to,attr"`
	From    *jid.JID    `xml:"from,attr"`
	Lang    string      `xml:"http://www.w3.org/XML/1998/namespace lang,attr,omitempty"`
	Type    messageType `xml:"type,attr,omitempty"`
	XMLName xml.Name    `xml:"message"`
}

type messageType int

M presence.go => presence.go +1 -1
@@ 15,13 15,13 @@ import (
// availability, and advertise entity capabilities. It can be directed
// (one-to-one), or used as a broadcast mechanism (one-to-many).
type Presence struct {
	XMLName xml.Name     `xml:"presence"`
	ID      string       `xml:"id,attr"`
	Inner   string       `xml:",innerxml"`
	To      *jid.JID     `xml:"to,attr"`
	From    *jid.JID     `xml:"from,attr"`
	Lang    string       `xml:"http://www.w3.org/XML/1998/namespace lang,attr,omitempty"`
	Type    presenceType `xml:"type,attr,omitempty"`
	XMLName xml.Name     `xml:"presence"`
}

type presenceType int