Versions in this module Expand all Collapse all v1 v1.0.0 Sep 25, 2021 Changes in this version + const DateFormat + func CreateDir(path string) error + func DeleteDir(path string) error + func HomeDir() string + func NewFile(fileName string) (*os.File, error) + func PathExists(path string) (bool, error) + func SecondsToHuman(input int) (result string) + func TimeToStandardDateTimeFormat(time time.Time) string + func WriteToFile(fileName string, bytes []byte) error + type Clock interface + Now func() time.Time + SetNow func(time.Time) error + type LiveClock struct + func NewLiveClock() *LiveClock + func (clock LiveClock) Now() time.Time + func (clock LiveClock) SetNow(time time.Time) error + type MockedClock struct + MockedNow time.Time + func NewMockedClock(now time.Time) *MockedClock + func (clock *MockedClock) Now() time.Time + func (clock *MockedClock) SetNow(time time.Time) error + type NotFoundError struct + Err string + func NewNotFoundError(err string) *NotFoundError + func (err *NotFoundError) Error() string + type ReportNotImplementedError struct + Err string + func NewReportNotImplementedError() *ReportNotImplementedError + func (err *ReportNotImplementedError) Error() string