pattern

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: Apache-2.0, BSD-3-Clause, Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Deprecated: this package was not meant to be exported. It now exists only for compatibility with older contrib module versions and won't be actively maintained.

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