MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / validateDateFormat

Function validateDateFormat

api/model/model.go:77–83  ·  view source on GitHub ↗
(format, value string)

Source from the content-addressed store, hash-verified

75}
76
77func 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
85func (b *CreateBalance) ValidateCreateBalance() error {
86 // Normalize allocation strategy: trim and uppercase

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected