Documentation ¶ Index ¶ func IsValid(str string) bool func ParseDate(now time.Time, regex string) string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func IsValid ¶ func IsValid(str string) bool IsValid check if regex contains a percent sign func ParseDate ¶ func ParseDate(now time.Time, regex string) string ParseDate matches each strftime format sequence and ReplaceAllStringFunc looks up each format sequence in the conversion table regexToStrftime to replace with a defined time format Types ¶ This section is empty. Source Files ¶ View all Source files regex.go Click to show internal directories. Click to hide internal directories.