Version: v0.0.0-...-e560ebb Latest Latest

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0




This section is empty.


This section is empty.


func Abs

func Abs(path string) string

func CreateTmpCopy

func CreateTmpCopy(src string) (string, func(), error)

CreateTmpCopy creates a temporary copy of the given file. It returns the file path, a clean up function, and a potential error.

func DirExists

func DirExists(path string) bool

Verify that a directory exists at the given relative path.

func FindInPathParents

func FindInPathParents(
	pathToFind string,
	startPath string,
	endPath string,
	testFunc func(string) bool) string

Look for a relative path, ascending through parent directories.


pathToFind: The relative path to look for.
startPath: The path to start the search from.  If |startPath| is a
  directory, it will be included in the directories that are searched.
endPath: The path to stop searching.
testFunc: The function to use to verify the relative path.

func PathExists

func PathExists(path string) bool

Verify that the given relative path exists.


This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL