Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DisableCache bool
TODO refactor later DisableCache will disable caching of the homeCaps directory. Caching is enabled by default.
Functions ¶
func EnvironmentVarExpand ¶
EnvironmentVarExpand function takes a string input and replaces any word that starts with "$" in the input with its expanded path (if exists) and returns the new string.
func GetEnvironmentVariables ¶
getVariables function takes a string input and identifies every word that begins with "$" or every word within two "%" in that input string then returns an array of those words. If input is empty or has no such word then returns nil.
func Home ¶
func Home(path string) (string, *errorwrapper.Wrapper)
Home expands the path to include the homeCaps directory if the path is prefixed with `~`. If it isn't prefixed with `~`, the path is returned as-is. Reference : https://bit.ly/3rZbbKH
Types ¶
This section is empty.