routeutil

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FiberPath

func FiberPath(pattern string) string

FiberPath converts mux-style route templates to fiber path templates.

func Handler

func Handler(h any, paramNames ...string) fiber.Handler

Handler adapts a standard net/http handler to fiber while preserving path params.

func PathParam

func PathParam(r *http.Request, key string) string

PathParam reads a path parameter that was attached with WithPathParams.

func WithPathParams

func WithPathParams(r *http.Request, params map[string]string) *http.Request

WithPathParams attaches extracted path parameters to the request context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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