Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TranslateText ¶
func TranslateText(text string, source string, target string, conf conf.ConfTranslator) res.ResTranslator
Types ¶
type Resp ¶
type Resp struct { DetectedLanguage struct { Language string `json:"language"` Score float32 `json:"score"` } `json:"detectedLanguage"` Translations []RespTranslation `json:"translations"` }
type RespTranslation ¶
type RespTranslation struct {
Text string `json:"text"`
}
Click to show internal directories.
Click to hide internal directories.