cli

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequestTranslate

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

RequestTranslate creates a request to the google translate api

Types

type RequestBody

type RequestBody struct {
	SourceLang string // The source language
	TargetLang string // The target language
	SourceText string // The text to be translated
}

The request body data used for the request

Jump to

Keyboard shortcuts

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