Move project to gosrc.io/xmpp

The URL will be more permanent as this is a place we dedicate as short URL for our go projects.
This commit is contained in:
Mickael Remond
2018-12-26 18:50:01 +01:00
parent 95585866c2
commit 5eae7f4ef7
30 changed files with 45 additions and 45 deletions

View File

@@ -9,7 +9,7 @@ import (
"log"
"os"
"fluux.io/xmpp"
"gosrc.io/xmpp"
)
func main() {
@@ -37,11 +37,11 @@ func main() {
for packet := range client.Recv() {
switch packet := packet.(type) {
case *xmpp.Message:
fmt.Fprintf(os.Stdout, "Body = %s - from = %s\n", packet.Body, packet.From)
_, _ = fmt.Fprintf(os.Stdout, "Body = %s - from = %s\n", packet.Body, packet.From)
reply := xmpp.Message{PacketAttrs: xmpp.PacketAttrs{To: packet.From}, Body: packet.Body}
client.Send(reply)
_ = client.Send(reply)
default:
fmt.Fprintf(os.Stdout, "Ignoring packet: %T\n", packet)
_, _ = fmt.Fprintf(os.Stdout, "Ignoring packet: %T\n", packet)
}
}
}