package xmpp import ( "fmt" "time" ) func (c *Client) RawVersion(from, to, id, version, osName string) error { body := "go-xmpp" + version + "" + osName + "" _, err := c.RawInformationQuery(from, to, id, "result", "jabber:iq:version", body) return err } func (c *Client) RawLast(from, to, id string, last int) error { body := fmt.Sprintf("Working", last) _, err := c.RawInformation(from, to, id, "result", body) return err } func (c *Client) RawIQtime(from, to, id string) error { tt := time.Now() zone, _ := tt.Zone() body := fmt.Sprintf("", zone, tt.UTC().Format("2006-01-02T15:03:04Z")) _, err := c.RawInformation(from, to, id, "result", body) return err }