options

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Locale

type Locale string

format: en_US

const LocaleDefault Locale = "en_US"

func StringToLocale

func StringToLocale(s string) (Locale, error)

func (Locale) String

func (l Locale) String() string

func (Locale) Validate

func (l Locale) Validate() error

type Options

type Options struct {
	Pages      Pages
	Locale     Locale
	SafeSearch bool
}

User provided options for every search engine.

type Pages

type Pages struct {
	Start int
	Max   int
}

Start must be 0-based index. Max must be greater than 0.

Jump to

Keyboard shortcuts

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