wotd

package
v0.0.0-...-89c1d71 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Definition

type Definition struct {
	Source string
	Parts  []PartOfSpeech
}

type Example

type Example struct {
	Source string
	URL    string
	Text   string
}

type PartOfSpeech

type PartOfSpeech struct {
	Kind string
	Text string
}

type Result

type Result struct {
	Kind string
	URL  string

	Word        string
	Definitions []Definition
	Examples    []Example
}

func All

func All(ctx context.Context) ([]*Result, error)

All returns words-of-the-day from all known sources

func Dictionary

func Dictionary(ctx context.Context) (*Result, error)

Dictionary returns words-of-the-day from dictionary.com

func Wordnik

func Wordnik(ctx context.Context) (*Result, error)

Wordnik returns words-of-the-day from wordnik.com

Jump to

Keyboard shortcuts

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