provider

package
v0.0.0-...-c6bdbe1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Default int = iota
	Green
	Blue
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Card

type Card struct {
	Origin      []string
	Translation []string
	Forms       []*Syllable
}

Card is representation of word card from VerbFormen

func (Card) IsEmpty

func (c Card) IsEmpty() bool

IsEmpty returns false is Card is empty

type Syllable

type Syllable struct {
	Val   string `json:"val"`
	Color int    `json:"color"`
}

Syllable is the part words with a specific style (color). I want it to look like on VerbFormen (with word parts highlighting).

type VerbFormen

type VerbFormen struct {
	URL string
}

VerbFormen – remove service to get translations and forms: https://www.verbformen.com/

func (VerbFormen) GetMeta

func (v VerbFormen) GetMeta(w *store.Word) error

GetMeta hits remove service to get Metadata for particular store.Word

Jump to

Keyboard shortcuts

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