sitemap

package module
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2019 License: MIT Imports: 1 Imported by: 1

README

sitemap

Godoc Report Tests Coverage Sponsor

Easily generate sitemaps.

Style

Please take a look at the style guidelines if you'd like to make a pull request.

Sponsors

Cedric Fung Scott Rayapoullé Eduard Urbach
Cedric Fung Scott Rayapoullé Eduard Urbach

Want to see your own name here?

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Site

type Site struct {
	URL string
}

Site represents a single page or URL.

type Sitemap

type Sitemap struct {
	// contains filtered or unexported fields
}

Sitemap represents a single sitemap.

func New

func New() *Sitemap

New creates a new sitemap.

func (*Sitemap) Add

func (sitemap *Sitemap) Add(url string)

Add adds a site to the sitemap.

func (*Sitemap) Text

func (sitemap *Sitemap) Text() string

Text creates a list of your URLs in text format.

Jump to

Keyboard shortcuts

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