MCPcopy
hub / github.com/gofiber/fiber / Execute

Method Execute

constraint.go:282–292  ·  view source on GitHub ↗
(param string, data []any)

Source from the content-addressed store, hash-verified

280}
281
282func (datetimeConstraintType) Execute(param string, data []any) bool {
283 if len(data) == 0 {
284 return false
285 }
286 layout, ok := data[0].(string)
287 if !ok || layout == "" {
288 return false
289 }
290 _, err := time.Parse(layout, param)
291 return err == nil
292}
293
294type minLenConstraintType struct{}
295

Calls 1

ParseMethod · 0.65