sitemap

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2018 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sitemap

type Sitemap struct {
	XMLName xml.Name `xml:"urlset"`
	URL     []URL    `xml:"url"`
}

Sitemap is a structure of sitemap

func LoadSitemap

func LoadSitemap(url string) (*Sitemap, error)

LoadSitemap will parse a sitemap.

type URL

type URL struct {
	Loc     string    `xml:"loc"`
	LastMod time.Time `xml:"lastmod"`
}

URL is the base element for sitemap.

Jump to

Keyboard shortcuts

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