cli

package
v0.0.0-...-020e97a Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const URL = "https://translate.googleapis.com/translate_a/single"

const URL = "https://translation.googleapis.com/language/translate/v2"

Variables

This section is empty.

Functions

func RequestTranslate

func RequestTranslate(body *RequestBody, strChan chan string, wg *sync.WaitGroup)

RequestTranslate sends a translation request to Google Translate API.

Types

type RequestBody

type RequestBody struct {
	SourceLang string
	TargetLang string
	SourceText string
}

RequestBody represents the request body for translation.

Jump to

Keyboard shortcuts

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