wadoku

package
v0.0.0-...-58581c8 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicDict

type BasicDict interface {
	Query(context.Context, string) ([]byte, error)
}

type LemmaBatchError

type LemmaBatchError struct {
	Errs []*LemmaError
}

func (*LemmaBatchError) Error

func (e *LemmaBatchError) Error() string

type LemmaError

type LemmaError struct {
	ID  int
	Err error
}

func (*LemmaError) Error

func (e *LemmaError) Error() string

func (*LemmaError) Unwrap

func (e *LemmaError) Unwrap() error

type Wadoku

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

func New

func New(client BasicDict, baseURL string) *Wadoku

func (*Wadoku) Query

func (w *Wadoku) Query(ctx context.Context, query string) ([]*lemma.PitchedLemma, error)

Jump to

Keyboard shortcuts

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