Affected by GO-2023-1894
and 1 other vulnerabilities
GO-2023-1894: code.gitea.io/gitea Open Redirect vulnerability
GO-2024-3056: Gitea Cross-site Scripting Vulnerability in code.gitea.io/gitea
package
Version:
v1.18.3
Opens a new window with list of versions in this module.
Published: Jan 23, 2023
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
type Sitemap struct {
XMLName xml.Name
Namespace string `xml:"xmlns,attr"`
URLs []URL `xml:"url"`
Sitemaps []URL `xml:"sitemap"`
}
Sitemap represents a sitemap
NewSitemap creates a sitemap
NewSitemapIndex creates a sitemap index.
Add adds a URL to the sitemap
WriteTo writes the sitemap to a response
type URL struct {
URL string `xml:"loc"`
LastMod *time.Time `xml:"lastmod,omitempty"`
}
URL represents a single sitemap entry
Source Files
¶
Click to show internal directories.
Click to hide internal directories.