Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandTilde ¶
ExpandTilde expands the tilde symbol (~) to the user's home directory This function is also useful for expanding file paths like "~/a/b/c"
func FileExists ¶
FileExists checks if the file with the gieven name exists. This function also supports file paths which are pointing to the user's home directory, i.e. starting with ~/
func ReadFile ¶
ReadFile reads a file with the given file name and returns its content as a slice of bytes. This function also supports file paths which are pointing to the user's home directory, i.e. starting with ~/
func ReadFileAsStr ¶
ReadFileAsStr does the same thing as ReadFile but ruturns the content of the file as a string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.