The mellium.im/xmpp/jid package implements operations on JIDs. To split a JID string into its component parts the SplitString function may be used:
lp, dp, rp, err := SplitString("
[email protected]")
No validation is performed by the function and the parts are not guaranteed to be vali...