serrors

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package serrors holds gosearch's sentinel errors in an internal package.

They live here, rather than in the public gosearch package, so that both the public package and internal packages (httpclient, providers) can return the exact same error values without creating an import cycle: the public package imports internal packages, so internal packages cannot import it back. The public gosearch package re-exports these under its own documented names.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBlocked           = errors.New("gosearch: request blocked by engine anti-bot system")
	ErrChallenge         = errors.New("gosearch: engine returned a captcha or javascript challenge")
	ErrNoResults         = errors.New("gosearch: no results found")
	ErrUnsupportedEngine = errors.New("gosearch: unsupported engine")
)

These are the canonical sentinel error values. The public gosearch package re-exports them (ErrBlocked, ErrChallenge, ErrNoResults, ErrUnsupportedEngine) with full doc comments; see that package for usage semantics.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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