Documentation
¶
Overview ¶
internal/robots/matcher.go
internal/robots/parser.go
internal/robots/rules.go
Package robots implements a minimal robots.txt parser and matcher. It supports User-agent, Allow and Disallow directives, and computes access rules based on the most specific matching path.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Robots ¶
type Robots struct {
Groups []Group
}
Robots is an in-memory representation of a robots.txt file.
func Parse ¶
Parse constructs a Robots structure from the given robots.txt bytes. The parser is intentionally simple but sufficient for Aether's goal of legal, respectful access.
Click to show internal directories.
Click to hide internal directories.