Documentation
¶
Overview ¶
Package params holds the shared query-parameter parsing used by all three framework adapters, so request handling stays identical across gin, echo, and fiber.
Index ¶
Constants ¶
View Source
const DefaultFrom = "USD"
DefaultFrom is the base currency used when `from` is omitted, matching the client default in the canonical spec.
Variables ¶
View Source
var ErrInvalidAmount = errors.New("invalid amount parameter")
ErrInvalidAmount is returned when the amount query parameter is not a parseable number.
View Source
var ErrMissingParam = errors.New("missing required query parameter")
ErrMissingParam is returned when a required query parameter is absent.
Functions ¶
func Convert ¶
Convert parses parameters for the /convert route: from (default USD), to (required), amount (default 1).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.