diff -r 8f6ae5cfc9b9 -r d6b7b4cbf50d structs.go --- a/structs.go Wed Dec 28 13:05:59 2011 -0700 +++ b/structs.go Wed Dec 28 13:14:46 2011 -0700 @@ -30,16 +30,15 @@ var _ flag.Value = &JID{} // XMPP's XML element -// BUG(cjyar) Hide this. -type Stream struct { +type stream struct { To string `xml:"attr"` From string `xml:"attr"` Id string `xml:"attr"` Lang string `xml:"attr"` Version string `xml:"attr"` } -var _ xml.Marshaler = &Stream{} -var _ fmt.Stringer = &Stream{} +var _ xml.Marshaler = &stream{} +var _ fmt.Stringer = &stream{} // // BUG(cjyar) Can this be consolidated with Error? Hide it if not. @@ -49,7 +48,7 @@ } var _ xml.Marshaler = &StreamError{} -// BUG(cjyar) Replace this with Unrecognized. +// BUG(cjyar) Replace this with Generic. type definedCondition struct { // Must always be in namespace nsStreams XMLName xml.Name @@ -189,7 +188,7 @@ return true } -func (s *Stream) MarshalXML() ([]byte, os.Error) { +func (s *stream) MarshalXML() ([]byte, os.Error) { buf := bytes.NewBuffer(nil) buf.WriteString("