Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandPath ¶
ExpandPath given a string which may be a relative path. 1. replace tilde with users home dir 2. expands embedded environment variables 3. cleans the path, e.g. /a/b/../c -> /a/c Note, it has limitations, e.g. ~someuser/tmp will not be expanded
func FileExists ¶
FileExists returns true if a file is not a directory and exists at the specified path.
func ReadFileAsBytes ¶
ReadFileAsBytes expands a file name's absolute path and reads it as bytes from disk.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.