()
| 72 | var excludeRegex *regexp.Regexp |
| 73 | |
| 74 | func 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. |
| 88 | type SitemapIndex struct { |
nothing calls this directly
no outgoing calls
no test coverage detected