RobotsTxtParser

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: MIT Imports: 2 Imported by: 1

README

robotstxt-parser

A Robots.Txt Parser available as Golang Module

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KV

type KV struct {
	Key   string
	Value string
}

type RobotsTxt

type RobotsTxt struct {
	UserAgentRules []UserAgentRule
	Sitemaps       []string
}

func ParseTxt

func ParseTxt(txt string) (RobotsTxt, error)

type UserAgentRule

type UserAgentRule struct {
	UserAgents []string
	Allow      []string
	Disallow   []string
}

Jump to

Keyboard shortcuts

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