pathutil

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasPathPrefix

func HasPathPrefix(path, prefix string) bool

HasPathPrefix reports whether path equals prefix or is nested under it.

func NormalizePrefix

func NormalizePrefix(prefix string) string

NormalizePrefix returns a leading-slash prefix without a trailing slash.

func StripPathPrefix

func StripPathPrefix(path, prefix string) string

StripPathPrefix removes a normalized prefix from path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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