func (i *Item) Validate() error {
	// check name
	if utf8.RuneCountInString(i.Name) < 1 {
		return fire.E("missing name")
	}

	// check timestamps
	if i.Created.IsZero() || i.Updated.IsZero() {
		return fire.E("missing timestamp")
	}

	return nil
}
func (i *Item) Validate() error {
	
	if utf8.RuneCountInString(i.Name) < 1 {
		return fire.E("missing name")
	}

	
	if i.Created.IsZero() || i.Updated.IsZero() {
		return fire.E("missing timestamp")
	}

	return nil
}
func ( i * Item ) Validate ( ) error { // check name if utf8 . RuneCountInString ( i . Name ) < 1 { return fire . E ( " " ) } // check timestamps if i . Created . IsZero ( ) || i . Updated . IsZero ( ) { return fire . E ( " " ) } return nil }
// Validate implements the fire.ValidatableModel interface.
Validate implements the fire . ValidatableModel interface .