go_sysutils/envs/consts.go

12 lines
232 B
Go
Raw Normal View History

package envs
import (
2021-12-18 04:41:09 -05:00
"regexp"
)
// Compiled regex patterns.
var (
2021-12-18 04:41:09 -05:00
reMaybeInt *regexp.Regexp = regexp.MustCompile(`^(?P<sign>\+|-)[0-9]+$`)
reMaybeFloat *regexp.Regexp = regexp.MustCompile(`(?P<sign>\+|-)?[0-9]+\.[0-9]+$`)
)