util

package
v0.0.0-...-6f6b6b6 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFullPath

func GetFullPath(path string) string

GetFullPath preprends basePath to a string

func ReplaceBasePath

func ReplaceBasePath(str, old, new string) string

ReplaceBasePath replaces a pattern in a string, injecting basePath into it

func SetBasePath

func SetBasePath(new string)

SetBasePath replaces basePath with a new one

func TrimBasePath

func TrimBasePath(r *http.Request, prefix string) string

TrimBasePath removes basePath from the beginning of a string

Types

This section is empty.

Jump to

Keyboard shortcuts

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