// SplitNamespace splits the nessage namespace into its constituent fields
SplitNamespace splits the nessage namespace into its constituent fields
// SplitNamespace splits the nessage namespace into its constituent fields
func (m *Msg) SplitNamespace() (string, string, error) {
	fields := strings.SplitN(m.Namespace, ".", 2)
	if len(fields) != 2 {
		return "", "", fmt.Errorf("malformed msg namespace")
	}
	return fields[0], fields[1], nil
}
func ( m * Msg ) SplitNamespace ( ) ( string , string , error ) { fields := strings . SplitN ( m . Namespace , " " , 2 ) if len ( fields ) != 2 { return " " , " " , fmt . Errorf ( " " ) } return fields [ 0 ] , fields [ 1 ] , nil }
SplitNamespace splits the nessage namespace into its constituent fields
SplitNamespace splits the nessage namespace into its constituent fields