models

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sitemap

type Sitemap struct {
	Urls []SitemapUrl `json:"urls"`
}

func NewSitemap

func NewSitemap(urls []SitemapUrl) *Sitemap

func (*Sitemap) Output

func (s *Sitemap) Output()

func (*Sitemap) OutputCSV

func (s *Sitemap) OutputCSV(filename string) error

func (*Sitemap) OutputJSON

func (s *Sitemap) OutputJSON(filename string) error

type SitemapUrl

type SitemapUrl struct {
	Location   string `json:"location"`
	LastMod    string `json:"lastMod"`
	ChangeFreq string `json:"changeFreq"`
	Priority   string `json:"priority"`
}

func NewSitemapUrl

func NewSitemapUrl(
	location string,
	lastMod string,
	changeFreq string,
	priority string,
) *SitemapUrl

func (*SitemapUrl) Output

func (s *SitemapUrl) Output()

Jump to

Keyboard shortcuts

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