param

package
v0.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2025 License: MIT Imports: 1 Imported by: 13

Documentation

Overview

Package param provides a set of shortcuts to define parameters for the route Options. See the github.com/go-fuego/fuego/option package for more information.

Index

Constants

This section is empty.

Variables

Bool sets the parameter type to boolean. The query parameter is transmitted as a string in the URL, but it is parsed as a boolean. Please prefer QueryBool for clarity.

Default sets the default value for the parameter. Type is checked at start-time.

View Source
var Description = fuego.ParamDescription

Description sets the description for the parameter.

Example adds an example to the parameter. As per the OpenAPI 3.0 standard, the example must be given a name.

Integer sets the parameter type to integer. The query parameter is transmitted as a string in the URL, but it is parsed as an integer. Please prefer QueryInt for clarity.

Nullable sets the parameter as nullable.

Required sets the parameter as required. If the parameter is not present, the request will fail.

View Source
var StatusCodes = fuego.ParamStatusCodes

StatusCodes sets the status codes for which this parameter is required. Only used for response parameters. If empty, it is required for 200 status codes.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL