Documentation ¶
Overview ¶
Package tools contains: calendar.go - cron.go - substrings.go
Format provides the functions to analyze the name, the number and the lenght of months ¶
Package tools contains: calendar.go - cron.go - substrings.go
Cron provides the functions to extract the information of JSON crontab Returns human readable format
Package tools contains: calendar.go - cron.go - substrings.go
Functions to get substrings Sort a list of snapshots
Index ¶
- func After(value string, a string) string
- func Arrange(SnapshotsList []string) []string
- func Before(value string, a string) string
- func Between(value string, a string, b string) string
- func Crontab(cron string) ([]int, []int, []int, []time.Month, []time.Weekday)
- func LengthMonth(year int, month time.Month) (bool, string)
- func NameMonth(month string) time.Month
- func NameMonthInt(month int) time.Month
- func NameMonthZero(month string) time.Month
- func NameWeek(weekday string) time.Weekday
- func NameWeekInt(weekday int) time.Weekday
- func NumberMonth(SnapshotName string) string
- func NumberMonthReverse(SnapshotName string) string
- func Reverse(value string, a string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LengthMonth ¶
LengthMonth specifies the length of the month in function of days
func NameMonthInt ¶
NameMonthInt returns the name of the month
func NameMonthZero ¶
NameMonthZero returns the name of the month
func NameWeekInt ¶
NameWeekInt returns the name of the weekday
func NumberMonth ¶
NumberMonth replaces the name of the month by the number
func NumberMonthReverse ¶
NumberMonthReverse replaces the number of the month by the name
Types ¶
This section is empty.