package view type RequestBookingViewModel struct { Item string From string To string Name string PhoneNumber string Email string Errors []string } func (rbvm RequestBookingViewModel) invalidTimeRange() bool { for _, e := range rbvm.Errors { if e == "invalid_time_range" { return true } } return false } func (rbvm RequestBookingViewModel) missingCommunicationMethod() bool { for _, e := range rbvm.Errors { if e == "missing_communication_method" { return true } } return false } templ RequestBookingForm(rbvm *RequestBookingViewModel) {
}