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 ¶
RequestBody represents the request body for translation.
Click to show internal directories.
Click to hide internal directories.