pathways

package module
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 6 Imported by: 29

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDefaultRootDirNotSet = errors.New("pathways: default root dir not set")
	ErrAbsDirsPathsNotSet   = errors.New("pathways: abs dirs paths not set")
	ErrRelToAbsDirNotSet    = errors.New("pathways: rel to abs dir not set")
)

Functions

func GetAbsDir

func GetAbsDir(ad AbsDir) (string, error)

func GetAbsRelDir

func GetAbsRelDir(rd RelDir) (string, error)

func GetRelDir

func GetRelDir(rd RelDir) (string, error)

func SetAbsDirs

func SetAbsDirs(absDirs ...AbsDir) error

func SetDefaultRootDir

func SetDefaultRootDir(drd string)

func SetRelToAbsDir

func SetRelToAbsDir(ra map[RelDir]AbsDir)

func SetUserDirsOverrides

func SetUserDirsOverrides(userDirs map[string]string)

func Setup

func Setup(
	optionalDirsOverrideFilename string,
	defaultRootDir string,
	relToAbsDirs map[RelDir]AbsDir,
	absDirs ...AbsDir) error

Types

type AbsDir

type AbsDir string

type RelDir

type RelDir string

Jump to

Keyboard shortcuts

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