Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureConfigFilePath ¶
EnsureConfigFilePath ensure the config file path. it mkdir -p the file's directory if not exist also returns abs path of file name if it starts from `~` or `$HOME` path must be "dir" not "file"
func ExpandHomeDir ¶
ExpandHomeDir returns abs path of filename if it starts with one of `~` or `$HOME` e.g.
~/.config/envp/config.yaml -> /<Users|home>/someone/.config/envp/config.yaml $HOME/.config/envp/config.yaml -> /<Users|home>/someone/.config/envp/config.yaml /tmp/somepath -> /tmp/somepath
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.