Documentation ¶
Overview ¶
Package fileutil provides utility functions related to files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustReadFile ¶
MustReadFile reads a given file and returns the content. If an error occurs mytoken terminates.
func ReadConfigFile ¶
ReadConfigFile checks if a file exists in one of the configuration directories and returns the content. If no file is found, mytoken exists.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.