From e529bab2e5df93ff8e9fd415b9d65e9bb6d17695 Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 4 Jul 2023 16:37:27 +0200 Subject: Introduce handle() as dummy --- xmpp/routing.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'xmpp/routing.go') diff --git a/xmpp/routing.go b/xmpp/routing.go index 2b1680f..b184b1c 100644 --- a/xmpp/routing.go +++ b/xmpp/routing.go @@ -22,3 +22,12 @@ func parse[T any](data T, s *xml.StartElement, d *xml.Decoder, c chan<- any) { c <- data } } + +func handle(element any) { + switch t := element.(type) { + case streamFeatures: + log.Println("Handling stream features ...") + default: + log.Printf("Unknown parsed element: %v", t) + } +} -- cgit v1.2.3-70-g09d2