package
0.0.18
Repository: https://github.com/jf-tech/go-corelib.git
Documentation: pkg.go.dev

# Functions

GetRegex compiles a given regex pattern and returns a compiled *regexp.Regexp or error.
GetTimeLocation loads a time.Location object based on IANA time zone string.
GetXPathExpr compiles a given xpath expression string and returns a compiled *xpath.Expr or error.
NewLoadingCache creates a new LoadingCache.

# Variables

RegexCache is the default loading cache used for caching the compiled regex expression.
TimeLocationCache is the default loading cache used for caching *time.Location object If the default size is too big/small and/or a cache limit isn't desired at all, caller can simply replace the cache during global initialization.
XPathExprCache is the default loading cache used for caching the compiled xpath expression.

# Structs

LoadingCache is a key/value cache with a user specified loading function and an optional capacity.

# Type aliases

LoadFunc is the type of the loading function.