client

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchArticle added in v0.3.0

func FetchArticle(path string) (io.ReadCloser, error)

func NewPageURL added in v0.0.4

func NewPageURL(path string) string

nolint:exhaustivestruct,exhaustruct,varnamelen

func NewSearchURL added in v0.0.4

func NewSearchURL(query string, sortby SortBy, pageno int) (string, error)

Types

type Result

type Result struct {
	Header  string   `json:"header"`
	Title   string   `json:"title"`
	Link    string   `json:"link"`
	Snippet string   `json:"snippet"`
	Tags    []string `json:"tags"`
}
func Search(url string) ([]Result, error)

nolint:gosec,noctx

type SortBy

type SortBy string

Jump to

Keyboard shortcuts

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