Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var validateInvoiceStatus invoiceStatusValidatorFunc = func(status string) (b bool, s string) {
- for i, incorrectStatus := range incorrectStatuses {
- if incorrectStatus == status {
- return false, fmt.Sprintf("Статус: %s. %s", status, incorrectStatusesMessages[i])
- }
- }
- return true, ""
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement