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

Method ValidateUpdateLedger

api/model/model.go:71–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 2

UpdateLedgerMethod · 0.95
TestValidateUpdateLedgerFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestValidateUpdateLedgerFunction · 0.64