sitemap

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const SitemapFile = "sitemap.xml"

Variables

This section is empty.

Functions

func CreateSitemap

func CreateSitemap(links []string, filename string) error

CreateSitemap creates the sitemap

Types

type URLSitemap

type URLSitemap struct {
	XMLName xml.Name `xml:"url"`
	Loc     string   `xml:"loc"`
}

URLSitemap is the model for every url entry on the sitemap

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL