regex

package
v0.0.0-...-55e386a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL