reporter

package
v0.0.0-...-04f6dc1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2017 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTML

type HTML struct {
	sync.Mutex
	// contains filtered or unexported fields
}

HTML is a reporter that can output a html sitemap.

func NewHTML

func NewHTML() *HTML

NewHTML creates a new HTML reporter.

func (*HTML) Add

func (r *HTML) Add(uri *url.URL, links []*url.URL, assets []string)

Add links and assets to a URI.

func (*HTML) Report

func (r *HTML) Report(w io.Writer) error

Report writes HTML to the given writer.

type Interface

type Interface interface {
	Add(uri *url.URL, links []*url.URL, assets []string)
	Report(io.Writer) error
}

Interface describes a reporter.

Jump to

Keyboard shortcuts

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