resolve

package
v0.16.102 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Directory

func Directory(dir string, baseDir string, create bool) (resolved string, err error)

Directory returns absolute dir name relative to baseDir, or NewNotFound error.

func ExpandPath added in v0.16.101

func ExpandPath(file string) string

ExpandPath returns extrapolated path with resolved ~ or env vars. It replaces ${var} or $var in the string according to the values of the current environment variables. References to undefined variables are replaced by the empty string.

func File

func File(file string, baseDir string) (resolved string, err error)

File returns absolute file name relative to baseDir, or NewNotFound error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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