oxp

package module
v0.0.0-...-4f033d8 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2020 License: MIT Imports: 8 Imported by: 0

README

oxp

Simple Oxford Learner's Dictionary client

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *Client

func (*Client) Search

func (c *Client) Search(ctx context.Context, text string) (interface{}, error)

type Entry

type Entry struct {
	Headword string
	POS      string
	Senses   []Sense
}

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func (*Parser) Parse

func (p *Parser) Parse(content *html.Node) (*Entry, error)

type Sense

type Sense struct {
	Shcut    string
	Def      string
	Examples []string
}

Jump to

Keyboard shortcuts

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