Documentation
¶
Index ¶
Constants ¶
View Source
const ( FreeHost = "https://api-free.deepl.com" ProHost = "https://api.deepl.com" APIVersion = "v2" AccountPlanIdentificationKey = ":fx" )
Variables ¶
This section is empty.
Functions ¶
func HandleHTTPError ¶
Types ¶
type Client ¶
func (*Client) NewRequest ¶ added in v0.4.0
func (*Client) TranslateText ¶ added in v0.4.0
func (c *Client) TranslateText(text, sourceLang, targetLang string) (*model.TranslateText, error)
type TranslationResponse ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.