fetch

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2020 License: ISC Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wiki

type Wiki struct {
	Type         string `json:"type"`
	Title        string `json:"title"`
	DisplayTitle string `json:"displaytitle"`
	PageID       int    `json:"pageid"`
	Description  string `json:"description"`
	Language     string `json:"lang"`
	Extract      string `json:"extract"`
}

Wiki struct holds information retrieved from wikipedia api.

func Wikipedia

func Wikipedia(q string) (Wiki, error)

Wikipedia gets the summary from wikipedia api & returns it with an error (if exists). It takes a string as input which will be the search query sent to wikipedia.

Jump to

Keyboard shortcuts

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