forked from chteufleur/go-xmpp
go fmt
This commit is contained in:
parent
6a42d26a31
commit
dc447769b2
|
|
@ -69,14 +69,14 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
type DiscoInfo struct {
|
type DiscoInfo struct {
|
||||||
XMLName xml.Name `xml:"http://jabber.org/protocol/disco#info query"`
|
XMLName xml.Name `xml:"http://jabber.org/protocol/disco#info query"`
|
||||||
Identity []DiscoIdentity `xml:"identity"`
|
Identity []DiscoIdentity `xml:"identity"`
|
||||||
Feature []DiscoFeature `xml:"feature"`
|
Feature []DiscoFeature `xml:"feature"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type DiscoIdentity struct {
|
type DiscoIdentity struct {
|
||||||
Type string `xml:"type,attr"`
|
Type string `xml:"type,attr"`
|
||||||
Name string `xml:"name,attr"`
|
Name string `xml:"name,attr"`
|
||||||
Category string `xml:"category,attr"`
|
Category string `xml:"category,attr"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,8 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
addr = flag.String("a", "", "Server component address")
|
addr = flag.String("a", "", "Server component address")
|
||||||
jid = flag.String("j", "", "JID")
|
jid = flag.String("j", "", "JID")
|
||||||
secret = flag.String("s", "", "Component secret")
|
secret = flag.String("s", "", "Component secret")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue