urlutil

package
v1.421.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeSlashParam

func DecodeSlashParam(param string) string

DecodeSlashParam restores the placeholder back to / in a path parameter value. Use this instead of c.Param() for any route parameter that may contain a slash (e.g. settings name = "org/team-slug").

func RewriteEncodedSlashes

func RewriteEncodedSlashes(rawPath string) (rewritten string, ok bool)

RewriteEncodedSlashes replaces %2F occurrences in rawPath with a placeholder and returns the rewritten path. The second return value is true when a substitution was made. If rawPath contains no encoded slashes the first return value equals rawPath and ok is false.

Types

This section is empty.

Jump to

Keyboard shortcuts

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