robotstxt

package
v0.83.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Allow is a middleware that responds with a barebones robots.txt file that
	// allows all user agents to access any path.
	Allow = Content("User-agent: *\nAllow: /")

	// Disallow is a middleware that responds with a barebones robots.txt file that
	// disallows all user agents from accessing any path.
	Disallow = Content("User-agent: *\nDisallow: /")
)

Functions

func Content

func Content(content string) middleware.Middleware

Content returns a middleware that responds with a robots.txt file containing the given content.

Types

This section is empty.

Jump to

Keyboard shortcuts

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