12 lines
232 B
Go
12 lines
232 B
Go
package envs
|
|
|
|
import (
|
|
"regexp"
|
|
)
|
|
|
|
// Compiled regex patterns.
|
|
var (
|
|
reMaybeInt *regexp.Regexp = regexp.MustCompile(`^(?P<sign>\+|-)[0-9]+$`)
|
|
reMaybeFloat *regexp.Regexp = regexp.MustCompile(`(?P<sign>\+|-)?[0-9]+\.[0-9]+$`)
|
|
)
|