sitemap

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Always  = ChangeFreqStr("always")
	Hourly  = ChangeFreqStr("hourly")
	Daily   = ChangeFreqStr("daily")
	Weekly  = ChangeFreqStr("weekly")
	Monthly = ChangeFreqStr("monthly")
	Yearly  = ChangeFreqStr("yearly")
	Never   = ChangeFreqStr("never")
)

Variables

This section is empty.

Functions

func Xml

func Xml(wrt io.Writer, handlers ...Handler) error

Types

type ChangeFreqStr

type ChangeFreqStr string

type Handler

type Handler func() []*Url

type PriorityStr

type PriorityStr string

func Priority

func Priority(p float32) PriorityStr

type TimeStr

type TimeStr string

func Time

func Time(t time.Time) TimeStr

type Url

type Url struct {
	Loc        string        `xml:"loc"`
	LastMod    TimeStr       `xml:"lastmod"`
	ChangeFreq ChangeFreqStr `xml:"changefreq"`
	Priority   PriorityStr   `xml:"priority"`
}

type UrlSet

type UrlSet struct {
	XMLName xml.Name `xml:"http://www.sitemaps.org/schemas/sitemap/0.9 urlset"`
	Urls    []*Url   `xml:"url"`
}

Jump to

Keyboard shortcuts

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