structs.go
changeset 40 33e7f25f1fd2
parent 38 2839fece923e
child 41 c8c9e6a7e6c9
--- a/structs.go	Sat Dec 31 11:45:44 2011 -0700
+++ b/structs.go	Sat Dec 31 12:11:02 2011 -0700
@@ -76,6 +76,8 @@
 	Any *Generic
 }
 
+// BUG(cjyar) Change XTo() to GetTo(), etc.
+
 // One of the three core XMPP stanza types: iq, message, presence. See
 // RFC3920, section 9.
 type Stanza interface {
@@ -242,6 +244,9 @@
 	return buf.Bytes(), nil
 }
 
+// BUG(cjyar) We can probably eliminate this if we use an
+// appropriately-tagged XMLName field.
+
 func (e *errText) MarshalXML() ([]byte, os.Error) {
 	buf := bytes.NewBuffer(nil)
 	buf.WriteString("<text")
@@ -308,6 +313,8 @@
 	return buf.Bytes(), nil
 }
 
+// BUG(cjyar) We can probably eliminate this if we add an XMLName
+// field with an appropriate tag.
 func (er *Error) MarshalXML() ([]byte, os.Error) {
 	buf := bytes.NewBuffer(nil)
 	buf.WriteString("<error")