param

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithChiURLParam

func WithChiURLParam(name string) param.Option

WithChiURLParam возвращает Option для извлечения параметра из URL-пути chi. Используется совместно с пакетом param для извлечения параметров маршрута chi.

Пример:

userID := param.NewParamInt("userID", logger,
    param.WithUriGetter(),
    param.WithChiURLParam("userID"), // извлекает из chi.URLParam
)
router.Get("/users/{userID}", userID.Middleware(handler))

Types

This section is empty.

Jump to

Keyboard shortcuts

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