You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
459 B
18 lines
459 B
package comm
|
|
|
|
import "regexp"
|
|
|
|
const (
|
|
TimeZero = -62135596800
|
|
TimeFmt = "2006-01-02 15:04:05"
|
|
TimeFmts = "2006-01-02"
|
|
TimeFmtm = "2006-01"
|
|
TimeFmtt = "20060102150405"
|
|
TimeFmtpck = "2006-01-02T15:04:05.999999999Z"
|
|
)
|
|
|
|
var (
|
|
REG_Host = regexp.MustCompile(`((\w+\.)*)((jzdisk\.)\w+)(:\d+)?`)
|
|
REG_Hosts = regexp.MustCompile(`https?://((\w+\.)*)((1ydt\.)\w+)(:\d+)?`)
|
|
REG_Phone = regexp.MustCompile(`^([0-9]{0,3})[1][3,4,5,7,8,9][0-9]{9}$`)
|
|
)
|