2021-12-18 04:23:35 -05:00
|
|
|
package envs
|
|
|
|
|
|
|
|
import (
|
2021-12-18 04:41:09 -05:00
|
|
|
"regexp"
|
2021-12-18 04:23:35 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
// 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]+$`)
|
2021-12-18 04:23:35 -05:00
|
|
|
)
|
2024-04-11 12:46:13 -04:00
|
|
|
|
|
|
|
var (
|
|
|
|
StructTagInterpolate string = "envsub"
|
|
|
|
)
|