Advertisement
Guest User

Untitled

a guest
Apr 8th, 2020
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.30 KB | None | 0 0
  1. var validateInvoiceStatus invoiceStatusValidatorFunc = func(status string) (b bool, s string) {
  2.     for i, incorrectStatus := range incorrectStatuses {
  3.         if incorrectStatus == status {
  4.             return false, fmt.Sprintf("Статус: %s. %s", status, incorrectStatusesMessages[i])
  5.         }
  6.     }
  7.  
  8.     return true, ""
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement