package xmpp import ( "encoding/xml" "log" ) func (s *session) sendPresence() { start := xml.StartElement{ xml.Name{"", "presence"}, []xml.Attr{}, } err := s.tx.EncodeElement(struct{}{}, start) if err != nil { log.Println("Could not encode presence!") return } }