Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultDirPerm = 0770 DefaultFilePerm = 0660 )
Variables ¶
This section is empty.
Functions ¶
func EnsureFileDir ¶
EndureFileDir creates a file's directory if it does not exist.
func RemovePathIfExists ¶
RemovePathIfExists removes a directory or a file if it exists.
func TrapSignal ¶
TrapSignal listens os signals SIGINT and SIGTERM in a goroutine. If trapped once, the stopper's Stop method is called to cleanup. If trapped twice, the program is interrupted.
Types ¶
Click to show internal directories.
Click to hide internal directories.