pathutil

package
v1.30.3 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildPublicEndpointPath

func BuildPublicEndpointPath(basePath, suffix string) string

BuildPublicEndpointPath constructs a normalized endpoint path by combining a base path and suffix, ensuring the result starts with "/" and has no trailing slashes or duplicate separators.

func NormalizePath

func NormalizePath(p string) string

NormalizePath ensures paths are comparable by enforcing a leading slash and trimming any trailing slash (except for root "/").

Types

This section is empty.

Jump to

Keyboard shortcuts

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