Documentation ¶
Index ¶
- func CopyFile(src, dst string) error
- func EnsureDir(dir string, mode os.FileMode) error
- func Exit(s string)
- func FileExists(filePath string) bool
- func Kill() error
- func MustReadFile(filePath string) []byte
- func MustWriteFile(filePath string, contents []byte, mode os.FileMode)
- func ReadFile(filePath string) ([]byte, error)
- func TrapSignal(logger logger, cb func())
- func WriteFile(filePath string, contents []byte, mode os.FileMode) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
func MustReadFile ¶
func TrapSignal ¶
func TrapSignal(logger logger, cb func())
TrapSignal catches the SIGTERM/SIGINT and executes cb function. After that it exits with code 0.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.