Documentation ¶
Index ¶
- func AppendStringToFile(path, text string) error
- func Copy(src, dst string) error
- func CreateFile(dst string) error
- func GetCommandOutput(logger *logger.Logger, command string, args []string) (output string)
- func ReadFile(src string) (string, error)
- func StartLogger(name, filename string, verbose bool) *logger.Logger
- func WriteStringToFile(path, text string) error
- type Duration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendStringToFile ¶
AppendStringToFile - Add string to the bottom of a file
func CreateFile ¶
CreateFile makes a blank file at the specified path
func GetCommandOutput ¶
GetCommandOutput runs a command in a subshell and returns the output as a string
func StartLogger ¶
StartLogger creates a logger named $name in /var/log/gogios/$filename.log
func WriteStringToFile ¶
WriteStringToFile - Replace contents of the file
Types ¶
Click to show internal directories.
Click to hide internal directories.