# Functions
AfterNow returns a date range ending n days in the past.
CheckFatal raises a fatal error if error is not nil.
DurationStr returns seconds as a duration string, i.e.
DurationStrLong returns a human readable format for the duration.
FormatDuration converts seconds into a duration string.
LastMonthRange returns a date range for last month.
LastWeekRange returns a date for last week.
LastYearRange returns a date range for last year.
LeftPad2Len https://github.com/DaddyOh/golang-samples/blob/master/pad.go.
Map applys a func to a string array.
NewContextLogger initializes a ContextLogger struct.
NewFamilyCallStack initializes a FamilyCallStack struct.
NewTestRepo creates a new instance of TestRepo.
Percent returns a values percent of the total.
RightPad2Len https://github.com/DaddyOh/golang-samples/blob/master/pad.go.
StringInSlice https://github.com/DaddyOh/golang-samples/blob/master/pad.go.
ThisMonthRange returns a date range for this month.
ThisWeekRange returns a date range for this week.
ThisYearRange returns a date range for this year.
TodayRange returns a date range for today.
UcFirst Uppercase first letter.
YesterdayRange returns a date range for yesterday.
# Structs
CallFrame contains the file, line number and function.
ContextLogger adds child and parent file location to logging.
DateRange creates predefined date ranges and validates if dates are within the range.
FamilyCallStack contains the child and parent call frames.
TestRepo represents a test git repo used in testing.
# Type aliases
ByInt64 list of type int64.