wiki

package
v0.0.0-...-8e45814 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wikipedia

type Wikipedia struct {
}

func (Wikipedia) Description

func (w Wikipedia) Description() string

func (Wikipedia) Example

func (w Wikipedia) Example() string

func (Wikipedia) Name

func (w Wikipedia) Name() string

func (Wikipedia) Run

func (w Wikipedia) Run(values ...string) (string, error)

type WikipediaNormalized

type WikipediaNormalized struct {
	From string `json:"from"`
	To   string `json:"to"`
}

type WikipediaPage

type WikipediaPage struct {
	Pageid  int    `json:"pageid"`
	Ns      int    `json:"ns"`
	Title   string `json:"title"`
	Extract string `json:"extract"`
}

type WikipediaPages

type WikipediaPages struct {
	Num4269567 struct {
		Pageid  int    `json:"pageid"`
		Ns      int    `json:"ns"`
		Title   string `json:"title"`
		Extract string `json:"extract"`
	} `json:"4269567"`
}

type WikipediaQuery

type WikipediaQuery struct {
	Normalized []WikipediaNormalized    `json:"normalized"`
	Pages      map[string]WikipediaPage `json:"pages"`
}

type WikipediaResponse

type WikipediaResponse struct {
	BatchComplete string         `json:"batchcomplete"`
	Query         WikipediaQuery `json:"query"`
}

Jump to

Keyboard shortcuts

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