format code
This commit is contained in:
18
xmpp-hats.go
18
xmpp-hats.go
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user