Clean up & documentation

This commit is contained in:
Mickael Remond
2019-06-28 16:41:53 +02:00
parent e3c0747cbb
commit 9bb4f32769
2 changed files with 38 additions and 7 deletions

View File

@@ -19,10 +19,6 @@ type Err struct {
Text string `xml:"urn:ietf:params:xml:ns:xmpp-stanzas text,omitempty"`
}
func (x *Err) Namespace() string {
return x.XMLName.Space
}
// UnmarshalXML implements custom parsing for XMPP errors
func (x *Err) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
x.XMLName = start.Name