21 lines
334 B
Go
21 lines
334 B
Go
package opt
|
|
|
|
import "regexp"
|
|
|
|
type config struct {
|
|
Debug bool
|
|
Make struct {
|
|
DisableDependencyCheck bool
|
|
Dir string
|
|
}
|
|
}
|
|
|
|
var (
|
|
Cfg = &config{}
|
|
)
|
|
|
|
var (
|
|
StorageSizeReg = regexp.MustCompile(`^\d+(\.\d+)?[EPTGMK]i?$`)
|
|
EmailReg = regexp.MustCompile(`^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$`)
|
|
)
|