path

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PostTrim

func PostTrim(path string) string

PostTrim checks to see if the string ends with the substring ".git", and if so, removes it.

func PreTrim

func PreTrim(path string) string

PreTrim Checks to see if the first character is a path separator, and if so, removes it.

func Sanitize

func Sanitize(path string) string

Sanitize is a wrapper around some helper functions that clean up the url path so that we can clone the repository on the file system.

Types

This section is empty.

Jump to

Keyboard shortcuts

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