Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandHomeDir ¶ added in v1.58.0
ExpandHomeDir expands a leading home-directory reference in a path. It expands "~", "~/...", and "~\\..." on Windows. Other tilde forms, such as "~user/...", are returned unchanged.
func ExpandPath ¶ added in v1.44.0
ExpandPath expands shell-like patterns in a file path:
- ~ or ~/ at the start is replaced with the user's home directory
- Environment variables like ${HOME} or $HOME are expanded
func ValidatePathInDirectory ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.