MCPcopy Create free account
hub / github.com/SecurityRunners/awsdocs / init

Function init

main.go:74–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72var excludeRegex *regexp.Regexp
73
74func init() {
75 // Prepare the list of SDKs for regex
76 escapedSDKs := make([]string, len(sdkExclusions))
77 for i, sdk := range sdkExclusions {
78 escapedSDKs[i] = regexp.QuoteMeta(sdk)
79 }
80
81 // Build the regex pattern
82 pattern := fmt.Sprintf(`https://docs\.aws\.amazon\.com/(?:[a-z]{2}_[a-z]{2}|cdk|%s)/`, strings.Join(escapedSDKs, "|"))
83
84 excludeRegex = regexp.MustCompile(pattern)
85}
86
87// SitemapIndex represents the structure of the sitemap index XML.
88type SitemapIndex struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected