MCPcopy Create free account
hub / github.com/danielmesquitta/flight-api / parseDateQueryParam

Function parseDateQueryParam

internal/app/server/handler/handler.go:24–34  ·  view source on GitHub ↗
(
	c *fiber.Ctx,
	param QueryParam,
)

Source from the content-addressed store, hash-verified

22)
23
24func parseDateQueryParam(
25 c *fiber.Ctx,
26 param QueryParam,
27) (time.Time, error) {
28 date := c.Query(param)
29 parsedDate, err := dateparse.ParseAny(date)
30 if err != nil {
31 return time.Time{}, errs.ErrInvalidDateFormat
32 }
33 return parsedDate, nil
34}
35
36func GetClaims(
37 c *fiber.Ctx,

Callers 1

SearchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected