filepath

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RelToAbsPath

func RelToAbsPath(path string, dir string) string

RelToAbsPath returns the absolute path of a file given its relative path and the directory name.

func TildaToHome added in v0.2.1

func TildaToHome(path string) string

TildaToHome converts a path beginning with ~/ to the absolute path based in the current home directory. If that cannot be determined, path is returned unaltered.

Types

This section is empty.

Jump to

Keyboard shortcuts

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