google

package
v0.0.0-...-2824937 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: MIT, BSD-3-Clause 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/

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