pathutil

package
v2.11.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildMountedAPIEndpointPath

func BuildMountedAPIEndpointPath(basePath, apiBasePath, suffix string) string

BuildMountedAPIEndpointPath constructs a normalized endpoint path relative to the mounted API path.

func BuildMountedAPIPath

func BuildMountedAPIPath(basePath, apiBasePath string) string

BuildMountedAPIPath constructs the effective mounted API path by combining the app base path and the configured API base path.

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