crawler

package
v0.0.0-...-2ab5e6a Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Crawl

func Crawl(startingURLs, allowedURLPrefixes []string, process ProcessFunc) error

Types

type Document

type Document struct {
	Uri   string `json:"uri"`
	Title string `json:"title"`
	Body  string `json:"body"`
}

type ProcessFunc

type ProcessFunc func(doc Document) error

Jump to

Keyboard shortcuts

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