format code

This commit is contained in:
2026-02-16 09:54:37 +00:00
parent e026e777f6
commit a7a49f7441
5 changed files with 21 additions and 27 deletions

View File

@@ -9,21 +9,21 @@ import (
// https://xmpp.org/extensions/xep-0317.html
type Hats struct {
XMLName xml.Name `xml:"urn:xmpp:hats:0 hats"`
Hats []Hat `xml:"hat"`
XMLName xml.Name `xml:"urn:xmpp:hats:0 hats"`
Hats []Hat `xml:"hat"`
}
type Hat struct {
Title string `xml:"title,attr"`
URI string `xml:"uri,attr"`
Hue string `xml:"hue,attr"`
Lang string `xml:"xml:lang,attr"`
Badge Badge `xml:"badge"`
Title string `xml:"title,attr"`
URI string `xml:"uri,attr"`
Hue string `xml:"hue,attr"`
Lang string `xml:"xml:lang,attr"`
Badge Badge `xml:"badge"`
}
type Badge struct {
XMLName xml.Name `xml:"urn:example:badges badge"`
Level int `xml:"level,attr"`
XMLName xml.Name `xml:"urn:example:badges badge"`
Level int `xml:"level,attr"`
}
func init() {