en

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatString

func FormatString(str string) string

func GetJson

func GetJson(str string) (s string, err error)

Types

type Detail

type Detail struct {
	Attribute          string               `json:"attribute"`
	ExplainsAndExample []ExplainsAndExample `json:"explains_and_example"`
}

type EnglishExplain

type EnglishExplain struct {
	Attribute string   `json:"attribute"`
	Explains  []string `json:"explains"`
}

type ExplainsAndExample

type ExplainsAndExample struct {
	Explain string      `json:"explain"`
	Example [][2]string `json:"example"`
}

Detail word detail explains Attribute word attribute ExplainsAndExample {explains:[[example],[example]]} | example: [eg,eg2]

type Word

type Word struct {
	Word            string           `json:"word"`
	Katakana        string           `json:"katakana"`
	Roma            string           `json:"roma"`
	AudioEnUrl      string           `json:"audio_en_url"`
	AudioUsUrl      string           `json:"audio_us_url"`
	EnglishExplains []EnglishExplain `json:"english_explains"`
	Phrase          []string         `json:"phrase"`
	Synonym         []string         `json:"synonym"`
	Antonym         []string         `json:"antonym"`
	Inflections     []string         `json:"inflections"`
	Simple          []string         `json:"simple"`
	Detail          []Detail         `json:"detail"`
}

func Get

func Get(str string) []Word

Jump to

Keyboard shortcuts

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