Documentation
¶
Index ¶
Constants ¶
View Source
const ( FreeHost = "https://api-free.deepl.com" ProHost = "https://api.deepl.com" APIVersion = "v2" )
View Source
const TRANSLATE = "/translate"
Variables ¶
View Source
var ErrMissingAuthKey = errors.New("missing DeepL authKey")
Functions ¶
func HandleHTTPError ¶
Types ¶
type Translate ¶
type Translate struct {
Translations []Translation `json:"translations"`
}
func (*Translate) TranslateText ¶
type Translation ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package mock_deepl is a generated GoMock package.
|
Package mock_deepl is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.