Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Response struct { DefinitionsByCategory map[string][]struct { Definition string `json:"definition,omitempty"` Dictionary string `json:"dictionary,omitempty"` UseInSentence string `json:"use-in-sentence,omitempty"` Synonyms map[string][]string `json:"synonyms,omitempty"` Informal string `json:"informal,omitempty"` } `json:"definitions"` TranslatedText string `json:"translated-text"` SingleTranslation map[string]map[string]struct { Words []string `json:"words,omitempty"` Frequency string `json:"frequency,omitempty"` } `json:"translations,omitempty"` }
func (Response) PrettyPrint ¶
func (Response) ShortTranslatedText ¶
type SimplyTranslate ¶
type SimplyTranslate struct {
// contains filtered or unexported fields
}
func New ¶
func New() SimplyTranslate
func (SimplyTranslate) TextToSpeech ¶
func (b SimplyTranslate) TextToSpeech(text, lang string) ([]byte, error)
func (SimplyTranslate) Translate ¶
func (b SimplyTranslate) Translate(text, source, target, engine string) (utils.BackendResponse, error)
Click to show internal directories.
Click to hide internal directories.