core

package
v0.0.0-...-afe7ca7 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TerminalFormatPrint

func TerminalFormatPrint(word Word)

Types

type Definition

type Definition struct {
	Definition string `json:"definition"`
	Example    string `json:"example"`
}

type Meaning

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

type Word

type Word struct {
	Spell    string    `json:"word"`
	Phonetic string    `json:"phonetic"`
	Meanings []Meaning `json:"meanings"`
}

func Crawl

func Crawl(spell string) (Word, error)

func Query

func Query(spell string) *Word

Jump to

Keyboard shortcuts

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