pattern

package
v2.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: Apache-2.0, BSD-3-Clause, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PathParameters

func PathParameters(pattern string, request *http.Request) map[string]string

PathParameters return the path parameter values and names from the request.

func Route

func Route(s string) string

Route returns the route part of a go1.22 style ServeMux pattern. I.e. it returns "/foo" for the pattern "/foo" as well as the pattern "GET /foo".

Types

This section is empty.

Jump to

Keyboard shortcuts

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