Documentation
¶
Overview ¶
Package utils exports few handy functions
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupEnv ¶
Function to be called on application shutdown. Will remove the pidfile.
func FileExists ¶
FileExists returns true if filePath is already existing regular file. It is a directory FileExists will return false.
Types ¶
type CompositeError ¶
type CompositeError struct {
// contains filtered or unexported fields
}
*NOT* concurrently save error saving a multiple of errors
func (*CompositeError) AppendError ¶
func (c *CompositeError) AppendError(err error)
append an error
func (*CompositeError) Empty ¶
func (c *CompositeError) Empty() bool
func (*CompositeError) Error ¶
func (c *CompositeError) Error() string
returns a string representation of all errors in the order they were appended
Click to show internal directories.
Click to hide internal directories.