(format, value string)
| 75 | } |
| 76 | |
| 77 | func validateDateFormat(format, value string) error { |
| 78 | _, err := time.Parse(format, value) |
| 79 | if err != nil { |
| 80 | return errors.New("please format the scheduled date as 'YYYY-MM-DDTHH:MM:SS+00:00' (e.g., 2024-04-22T15:28:03+00:00)") |
| 81 | } |
| 82 | return nil |
| 83 | } |
| 84 | |
| 85 | func (b *CreateBalance) ValidateCreateBalance() error { |
| 86 | // Normalize allocation strategy: trim and uppercase |
no outgoing calls
no test coverage detected