Documentation ¶
Overview ¶
Package path contains utilities for manipulating file paths.
Index ¶
- func Base(path string) string
- func Clean(p string) string
- func Dir(path string) string
- func Expand(path string) (string, error)
- func Ext(path string) string
- func Home() string
- func Join(elem ...string) string
- func OnlyName(path string) string
- func RelFromHome(target string) string
- func WorkDir() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Home ¶ added in v0.2.0
func Home() string
Home returns the home directory of the current user or a temporary directory.
func RelFromHome ¶ added in v0.2.0
RelFromHome returns a path relative to the home directory. If the path is not relative to the home directory, the original path is returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.