scraper

package
v0.0.0-...-bfb15b5 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Definition

type Definition struct {
	WordDefinition string    `json:"definition"`
	Examples       []Example `json:"examples"`
}

type Example

type Example string

type Response

type Response struct {
	Usages []Usage `json:"en"`
}

func ParseApiResponse

func ParseApiResponse(data string) Response

func (Response) Normalize

func (r Response) Normalize() Response

type Usage

type Usage struct {
	PartOfSpeech string       `json:"partOfSpeech"`
	Language     string       `json:"language"`
	Definitions  []Definition `json:"definitions"`
}

Jump to

Keyboard shortcuts

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