robotstxt

package
v0.85.0-pre.13 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Allow

func Allow(next http.Handler) http.Handler

Allow is a middleware that responds with a barebones robots.txt file that allows all user agents to access any path.

func Content

func Content(content string) middleware.Middleware

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

func Disallow

func Disallow(next http.Handler) http.Handler

Disallow is a middleware that responds with a barebones robots.txt file that disallows all user agents from accessing any path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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