bing

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NoResult = "" /* 185-byte string literal not displayed */

	ErrAPIResponse = errors.New("bing responded with error")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(maxResults int) *Client

func (*Client) Search

func (client *Client) Search(ctx context.Context, query string) (string, error)

func (*Client) SetMaxResults

func (client *Client) SetMaxResults(n int)

type Result

type Result struct {
	Title string
	Info  string
	Ref   string
}

Jump to

Keyboard shortcuts

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