Documentation ¶
Overview ¶
Package translate implements translation on Google Translate.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Translation ¶
Translation represents a result with text and detected source language.
func Translate ¶
func Translate(source, target, text, key string) (*Translation, error)
Translate translates a text on Google Translate from a language to another. It requires a Google API Key (key), valid source and target languages. For automatic source language detection, use empty string.
Click to show internal directories.
Click to hide internal directories.