Documentation ¶
Index ¶
- func CloseOnFail(success bool, closable Closable)
- func EnsureDir(path string) error
- func EnsureDirs(paths ...string) error
- func GetFiles(path string) ([]string, error)
- func GetFilteredFiles(path string, filter string) ([]string, error)
- func HandleError(logger *logging.Logger, message string, err error)
- func HandleErrorWithoutLogger(message string, err error)
- func IsEndOfFileError(err error) bool
- func IsExist(path string) (bool, error)
- func TryCloseOnFail(success bool, closable TryClosable) error
- type Closable
- type Stopper
- type TryClosable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseOnFail ¶
func EnsureDirs ¶
func HandleError ¶
func IsEndOfFileError ¶
func TryCloseOnFail ¶
func TryCloseOnFail(success bool, closable TryClosable) error
Types ¶
type Stopper ¶
type Stopper struct { Stopping chan struct{} // contains filtered or unexported fields }
func NewStopper ¶
func NewStopper() *Stopper
type TryClosable ¶
type TryClosable interface {
Close() error
}
Click to show internal directories.
Click to hide internal directories.