wikipedia

package
v0.0.0-...-e30276e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtractQuery

type ExtractQuery struct {
	Pages Pages `json:"pages"`
}

ExtractQuery represents the query object from the wikipedia api

func (ExtractQuery) String

func (q ExtractQuery) String() string

type Page

type Page struct {
	Extract string `json:"extract"`
}

Page represents a single page result from wikipedia api

func (Page) String

func (p Page) String() string

type Pages

type Pages map[string]Page

Pages represents the page results from the wikipedia api

func (Pages) String

func (ps Pages) String() string
type Search struct {
	Title string `json:"title"`
}

Search represents a single search result from the wikipedia api

func (Search) String

func (s Search) String() string

type SearchQuery

type SearchQuery struct {
	Search searchResults `json:"search"`
}

SearchQuery represents the search results from the wikipedia api

func (SearchQuery) String

func (sq SearchQuery) String() string

Jump to

Keyboard shortcuts

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