sitemap

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package sitemap is an internal package of the tool Crawl, responsible for parsing XML sitemaps and indexes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fetch

func Fetch(url string) ([]string, error)

Fetch is like Parse, but it also retrieves its data from the given URL.

func FetchIndex

func FetchIndex(url string) ([]string, error)

FetchIndex is like ParseIndex, but it also retrieves its data from the given URL.

func Parse

func Parse(in io.Reader) ([]string, error)

Parse interprets in as a sitemap. It returns the URLs in that sitemap if successful.

func ParseIndex

func ParseIndex(in io.Reader) ([]string, error)

ParseIndex interprets in as a sitemap index. It returns the sitemap URLs in the index if successful.

Types

This section is empty.

Jump to

Keyboard shortcuts

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