what a rabbithole. lots of goodies now.
This commit is contained in:
11
envs/consts.go
Normal file
11
envs/consts.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package envs
|
||||
|
||||
import (
|
||||
`regexp`
|
||||
)
|
||||
|
||||
// Compiled regex patterns.
|
||||
var (
|
||||
reMaybeInt *regexp.Regexp = regexp.MustCompilePOSIX(`^(?P<sign>\+|-)[0-9]+$`)
|
||||
reMaybeFloat *regexp.Regexp = regexp.MustCompilePOSIX(`(?P<sign>\+|-)?[0-9]+\.[0-9]+$`)
|
||||
)
|
||||
Reference in New Issue
Block a user