func verifyRune(databaseType rune) error {
	allowed := []rune{'D', 'M', 'C', 'A'}

	for _, r := range allowed {
		if databaseType == r {
			return nil
		}
	}

	return errors.New("this rune is invalid: must be 'D', 'M', 'C' or 'A'")

}
//verify return error if the rune is not allowed
verify return error if the rune is not allowed
// verify return error if the rune is not allowed
func verifyRune(databaseType rune) error {
	allowed := []rune{'D', 'M', 'C', 'A'}
	for _, r := range allowed {
		if databaseType == r {
			return nil
		}
	}
	return errors.New("this rune is invalid: must be 'D', 'M', 'C' or 'A'")
}
func verifyRune ( databaseType rune ) error { allowed := [ ] rune { 'D' , 'M' , 'C' , 'A' } for _ , r := range allowed { if databaseType == r { return nil } } return errors . New ( " " ) }
verify return error if the rune is not allowed
verify return error if the rune is not allowed