google

package
v0.0.0-...-31a27a5 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package google provides a function to do Google searches using the Google Web Search API. See https://developers.google.com/web-search/docs/

This package is an example to accompany https://blog.golang.org/context. It is not intended for use by others.

Google has since disabled its search API, and so this package is no longer useful.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Title, URL string
}

A Result contains the title and URL of a search result.

type Results

type Results []Result

Results is an ordered list of search results.

func Search(ctx context.Context, query string) (Results, error)

Search sends query to Google search and returns the results.

Jump to

Keyboard shortcuts

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