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.
Click to show internal directories.
Click to hide internal directories.