Documentation ¶
Index ¶
- func LangDetect(text string, retries, duration int) (string, float64, error)
- func Translate(text string, from language.Tag, to language.Tag) (string, error)
- func TranslatePure(text, from, to string) (string, error)
- func TranslateWithParams(text string, params TranslationParams) (string, error)
- type TranslationParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LangDetect ¶
LangDetect a text
func TranslatePure ¶
TranslatePure translate a text using language strng
func TranslateWithParams ¶
func TranslateWithParams(text string, params TranslationParams) (string, error)
TranslateWithParams translate a text with simple params as string
Types ¶
Click to show internal directories.
Click to hide internal directories.