path

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommonPrefix

func CommonPrefix(paths []string) (string, error)

Find a common prefix amongst paths

func EnsureAbs

func EnsureAbs(path string) (string, error)

EnsureAbs ensures path is absolute, if not already.

func EnsureAllAbs

func EnsureAllAbs(paths []string) (updated []string, err error)

EnsureAllAbs ensures all paths are absolute paths

func RelToWorkingDir

func RelToWorkingDir(paths []string) (updated []string, err error)

RelToWorkingDir turns all absolute paths into relative paths relative to the current working directory.

func RemoveNestedPaths

func RemoveNestedPaths(paths []string) (unnested []string)

Remove paths which are nested within another path

Types

This section is empty.

Jump to

Keyboard shortcuts

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