path

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TrimModPrefixOrEmpty added in v0.0.2

func TrimModPrefixOrEmpty(pkgFile string, modPath string) string

empty indicates not matching prefix

func TrimPrefix

func TrimPrefix(s string, prefix string) (string, error)

TrimPrefix (/a/b/c, /a/b) -> c

func TrimPrefixOrEmpty

func TrimPrefixOrEmpty(s string, prefix string) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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