func (mid MsgID) Validate() error {
	if mid == "-" {
		return fmt.Errorf(`"-" is reserved`)
	}
	return validatePrintUSASCII(string(mid), 32)
}
// Validate ensures that the message ID is correct.
Validate ensures that the message ID is correct.
// Validate ensures that the message ID is correct .
func (mid MsgID) Validate() error {
	if mid == "-" {
		return fmt.Errorf(`"-" is reserved`)
	}
	return validatePrintUSASCII(string(mid), 32)
}
func ( mid MsgID ) Validate ( ) error { if mid == " " { return fmt . Errorf ( `"-" is reserved` ) } return validatePrintUSASCII ( string ( mid ) , 32 ) }
Validate ensures that the message ID is correct.
Validate ensures that the message ID is correct .