summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-07-04 22:09:36 +0200
committerxengineering <me@xengineering.eu>2023-07-04 22:09:36 +0200
commitd9fe0a4360770b1e4b6b4fb3686c3275ad1b6e6e (patch)
treea317f8dc44ac9828ae5806e1fa1dee7547118619
parent4c9c6c91f9dfca9fd17731d5b0e94aaaace4a137 (diff)
downloadlimox-d9fe0a4360770b1e4b6b4fb3686c3275ad1b6e6e.tar
limox-d9fe0a4360770b1e4b6b4fb3686c3275ad1b6e6e.tar.zst
limox-d9fe0a4360770b1e4b6b4fb3686c3275ad1b6e6e.zip
Apply go fmt
-rw-r--r--xmpp/jid.go2
-rw-r--r--xmpp/sasl.go2
-rw-r--r--xmpp/session.go2
-rw-r--r--xmpp/streams.go2
4 files changed, 4 insertions, 4 deletions
diff --git a/xmpp/jid.go b/xmpp/jid.go
index c732027..9580ad5 100644
--- a/xmpp/jid.go
+++ b/xmpp/jid.go
@@ -43,7 +43,7 @@ func username(jid string) string {
type bindRequest struct {
Bind struct {
- Xmlns string `xml:"xmlns,attr"`
+ Xmlns string `xml:"xmlns,attr"`
Resource struct {
Content string `xml:",chardata"`
} `xml:"resource"`
diff --git a/xmpp/sasl.go b/xmpp/sasl.go
index ae3be4a..69b536d 100644
--- a/xmpp/sasl.go
+++ b/xmpp/sasl.go
@@ -29,7 +29,7 @@ func (s *session) sasl() {
}
}
-type saslSuccess struct {}
+type saslSuccess struct{}
func handleSaslSuccess(s *session) {
openStream(s.tx, s.jid)
diff --git a/xmpp/session.go b/xmpp/session.go
index 7a07280..4dfd76f 100644
--- a/xmpp/session.go
+++ b/xmpp/session.go
@@ -58,7 +58,7 @@ func (s *session) run() {
openStream(s.tx, s.jid)
defer closeStream(s.tx)
- s.out <- SessionConnect{} // TODO this should be sent after initial presence
+ s.out <- SessionConnect{} // TODO this should be sent after initial presence
defer func() { s.out <- SessionDisconnect{} }()
for {
diff --git a/xmpp/streams.go b/xmpp/streams.go
index ec16a02..9f6ffe8 100644
--- a/xmpp/streams.go
+++ b/xmpp/streams.go
@@ -7,7 +7,7 @@ import (
type streamFeatures struct {
SaslMechanisms []string `xml:"urn:ietf:params:xml:ns:xmpp-sasl mechanisms>mechanism"`
- Bind *bool `xml:"urn:ietf:params:xml:ns:xmpp-bind bind,omitempty"`
+ Bind *bool `xml:"urn:ietf:params:xml:ns:xmpp-bind bind,omitempty"`
}
func handleStreamFeatures(s *session, f streamFeatures) {