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
Click to show internal directories.
Click to hide internal directories.