leaps: github.com/Jeffail/leaps/lib/util/service/path Index | Files

package path

import "github.com/Jeffail/leaps/lib/util/service/path"


Package Files


func BinaryPath Uses

func BinaryPath() (string, error)

BinaryPath - Returns the path of the executing binary, or an error if it couldn't be resolved.

func FromBinaryIfRelative Uses

func FromBinaryIfRelative(path *string) error

FromBinaryIfRelative - Takes a path and, if the path is relative, resolves the path from the location of the binary file rather than the current working directory. Returns an error when the path is relative and cannot be resolved.

Package path imports 2 packages (graph). Updated 2018-02-28. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).