robots

package
v2.2.5 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Robots

func Robots(options *Options) func(r *request.Request)

Robots returns a handler that generates a robots.txt file.

Types

type Listing

type Listing struct {
	Allow      []string
	Disallow   []string
	UserAgent  string
	CrawlDelay int
}

Item in the robots.txt file.

type Options

type Options struct {
	Rules   []*Listing
	SiteMap string
}

Options for generating the robots.txt file.

Jump to

Keyboard shortcuts

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