youdao

package
v0.0.0-...-d0dbd01 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2025 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg *Config) *dict.Dict

Types

type Config

type Config struct {
	UserAgent string `yaml:"user_agent"`
}

type Dict

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

func (*Dict) Pronounce

func (d *Dict) Pronounce(ctx context.Context, word, accent, format string) (io.ReadCloser, error)

func (*Dict) Query

func (d *Dict) Query(ctx context.Context, word string) ([]byte, error)

Jump to

Keyboard shortcuts

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