func validate(db Database) error {
	switch {
	case db == nil:
		return fmt.Errorf("database required")
	}
	return nil
}
// validate checks fields to set up the dao.
validate checks fields to set up the dao.
// validate checks fields to set up the dao .
func validate(db Database) error {
	switch {
	case db == nil:
		return fmt.Errorf("database required")
	}
	return nil
}
func validate ( db Database ) error { switch { case db == nil : return fmt . Errorf ( " " ) } return nil }
validate checks fields to set up the dao.
validate checks fields to set up the dao .