jp

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatCNString

func FormatCNString(str string) string

func FormatString

func FormatString(str string) string

func GetCNJson

func GetCNJson(str string) (string, error)

func GetJson

func GetJson(str string) (string, error)

Types

type Detail

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

type ExplainsAndExample

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

type SimpleExplain

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

type Word

type Word struct {
	Word     string          `json:"word"`
	Katakana string          `json:"katakana"`
	AudioUrl string          `json:"audio_url"`
	Simple   []SimpleExplain `json:"simple"`
	Detail   []Detail        `json:"detail"`
}

func Get

func Get(str string) []Word

func GetCN

func GetCN(str string) []Word

Jump to

Keyboard shortcuts

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