Versions in this module Expand all Collapse all v0 v0.0.4 Nov 26, 2026 Changes in this version + const MaxSnippetBytes + var ErrBotChallenge = errors.New(...) + func BuildSearchURL(endpoint *url.URL, query string) string + func CleanResultURL(raw string) string + func FormatContent(rawURL, contentType string, body []byte, format Format) string + func HTMLToMarkdown(rawHTML string, baseURL string) string + func HTMLToText(rawHTML string) string + func MatchesAnyDomain(host string, domains []string) bool + func ResultHost(rawURL string) string + type Format string + const FormatHTML + const FormatMarkdown + const FormatText + func ParseFormat(raw string) (Format, error) + type Hit struct + Snippet string + Title string + URL string + func FilterHits(hits []Hit, allowed, blocked []string, limit int) ([]Hit, bool) + func ParseSearchHTML(r io.Reader) ([]Hit, error)