param

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 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 returns a param.Option that extracts a value from chi's URL parameters. This allows using chi's named path parameters (e.g., /users/{id}) with Compogo's param system.

Example:

userID := param.NewParamInt("id", logger,
    param.WithChiURLParam("id"),  // extracts from /users/{id}
)

Types

This section is empty.

Jump to

Keyboard shortcuts

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