mirror of
https://git.coolaj86.com/coolaj86/go-watchdog.git
synced 2025-12-26 22:28:40 +00:00
12 lines
245 B
Go
12 lines
245 B
Go
package config
|
|
|
|
import "regexp"
|
|
|
|
var (
|
|
// used to remove comments from json
|
|
regexComments = regexp.MustCompile(`\/\/([\w\s\'].*)`)
|
|
|
|
// SafeVarName is used to remove special chars from paths
|
|
SafeVarName = regexp.MustCompile(`[^a-zA-Z0-9]`)
|
|
)
|