()
| 69 | } |
| 70 | |
| 71 | func (l *UpdateLedger) ValidateUpdateLedger() error { |
| 72 | return validation.ValidateStruct(l, |
| 73 | validation.Field(&l.Name, validation.Required), |
| 74 | ) |
| 75 | } |
| 76 | |
| 77 | func validateDateFormat(format, value string) error { |
| 78 | _, err := time.Parse(format, value) |
no outgoing calls