parseparam

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get[T any](c *fiber.Ctx) *T

Get returns the route parameter for T.

func New

func New[T any](param string, name string, fetch func(int64) (*T, bool)) fiber.Handler

New returns middleware that looks for a route parameter corresponding to an ID, fetches the model for it, and assigns it to c.Locals(name).

Types

This section is empty.

Jump to

Keyboard shortcuts

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