wiki

package
v0.0.0-...-686dd5f Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func URLEncoded

func URLEncoded(str string) (string, error)

URLEncoded encodes a string to be used in a query part of a URL

func WikipediaAPI

func WikipediaAPI(request string) (answer []string)

WikipediaAPI communicate with wikipedia api

Types

type Result

type Result struct {
	Name, Description, URL string
}

Result structure which contains parsed results

type SearchResults

type SearchResults struct {
	Query   string
	Results []Result
	// contains filtered or unexported fields
}

SearchResults structure with query and all Result data

func (*SearchResults) UnmarshalJSON

func (sr *SearchResults) UnmarshalJSON(bs []byte) error

UnmarshalJSON set data to strcuture

Jump to

Keyboard shortcuts

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