gitlab.com/evatix-go/core@v1.3.55/regexnew/vars.go (about)

     1  package regexnew
     2  
     3  import (
     4  	"regexp"
     5  	"sync"
     6  
     7  	"gitlab.com/evatix-go/core/constants"
     8  )
     9  
    10  var (
    11  	regexMutex    = sync.Mutex{}
    12  	lazyRegexLock = sync.Mutex{}
    13  	regexMaps     = make(
    14  		map[string]*regexp.Regexp,
    15  		constants.ArbitraryCapacity30)
    16  	lazyRegexOnceMap = lazyRegexMap{
    17  		items: make(
    18  			map[string]*LazyRegex,
    19  			constants.ArbitraryCapacity30),
    20  	}
    21  
    22  	New = newCreator{}
    23  )