func (c *Card) Validate() error {
	if c.ID == "" {
		return errors.New("id required")
	}
	if _, _, _, err := c.parseID(); err != nil {
		return err
	}
	if c.Created.IsZero() {
		return errors.New("created time required")
	}
	if c.Modified.IsZero() {
		return errors.New("modified time required")
	}
	if _, _, err := c.parseThemeID(); err != nil {
		return err
	}
	return nil
}
// Validate validates that all of the data in the card appears valid and self
// consistent. A nil return value means no errors were detected.
Validate validates that all of the data in the card appears valid and self
consistent. A nil return value means no errors were detected.
// Validate validates that all of the data in the card appears valid and self // consistent . A nil return value means no errors were detected .
func (c *Card) Validate() error {
	if c.ID == "" {
		return errors.New("id required")
	}
	if _, _, _, err := c.parseID(); err != nil {
		return err
	}
	if c.Created.IsZero() {
		return errors.New("created time required")
	}
	if c.Modified.IsZero() {
		return errors.New("modified time required")
	}
	if _, _, err := c.parseThemeID(); err != nil {
		return err
	}
	return nil
}
func ( c * Card ) Validate ( ) error { if c . ID == " " { return errors . New ( " " ) } if _ , _ , _ , err := c . parseID ( ) ; err != nil { return err } if c . Created . IsZero ( ) { return errors . New ( " " ) } if c . Modified . IsZero ( ) { return errors . New ( " " ) } if _ , _ , err := c . parseThemeID ( ) ; err != nil { return err } return nil }
Validate validates that all of the data in the card appears valid and self
consistent.
Validate validates that all of the data in the card appears valid and self consistent .