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.19.0-dev
Opens a new window with list of versions in this module.
Published: Oct 26, 2022
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"`
}
SitemapUrl represents a sitemap
NewSitemap creates a sitemap
NewSitemap creates a sitemap index.
Add adds a URL to the sitemap
Write 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.