// Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method.
// This method is not required and may be deleted.
Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method.
This method is not required and may be deleted.
// Validate gets run every time you call a " pop . Validate * " ( pop . ValidateAndSave pop . ValidateAndCreate pop . ValidateAndUpdate ) method . // This method is not required and may be deleted .
func (w *Widget) Validate(tx *pop.Connection) (*validate.Errors, error) {
	return validate.Validate(
		&validators.StringIsPresent{Field: w.Name, Name: "Name"},
	), nil
}
func ( w * Widget ) Validate ( tx * pop . Connection ) ( * validate . Errors , error ) { return validate . Validate ( & validators . StringIsPresent { Field : w . Name , Name : " " } , ) , nil }
Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method.
Validate gets run every time you call a " pop . Validate * " ( pop . ValidateAndSave pop . ValidateAndCreate pop . ValidateAndUpdate ) method .