path

package
v4.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package path provide path utils

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNameFromPart added in v4.2.0

func GetNameFromPart(pathPart string) (name string, exp string)

GetNameFromPart gets node name from path part

func GetPart added in v4.2.0

func GetPart(path string) (part string, nextPath string)

GetPart returns first path part and next path as a second argument

func StripLeadingSlashes added in v4.4.7

func StripLeadingSlashes(path string, stripSlashes int) string

func TrimSlash added in v4.2.0

func TrimSlash(path string) string

TrimSlash trims '/' URL path

Types

This section is empty.

Jump to

Keyboard shortcuts

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