translate

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResponseText

type ResponseText struct {
	Text string `json:"translatedText"`
}

ResponseText //

type Translate

type Translate struct {
	URL    string
	Params struct {
		QueryText      []string
		SourceLanguage string
		TargetLanguage string
		Format         string
	}
}

Translate //

func (*Translate) GetTranslate

func (t *Translate) GetTranslate() (txt ResponseText, err error)

GetTranslate - get translate text

Jump to

Keyboard shortcuts

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