sitemap

package
v1.1.27 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package sitemap generates an list of pages of the website. The generated XML file is stored on the site's root and can be parsed by search engine bots.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create() error

Create generates and prints the sitemap.

Types

type URLset

type URLset struct {
	XMLName xml.Name `xml:"urlset,omitempty"`
	XMLNS   string   `xml:"xmlns,attr,omitempty"`
	Urls    []url    `xml:"url,omitempty"`
}

URLset is a sitemap XML template.

Jump to

Keyboard shortcuts

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