Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
EInvalidAPIKind error = errors.New("deepl-go: Invalid API Kind")
)
Functions ¶
This section is empty.
Types ¶
type AccountStatus ¶
type Client ¶
type Client struct { BaseURL *url.URL HTTPClient *http.Client Logger *log.Logger // contains filtered or unexported fields }
func (*Client) GetAccountStatus ¶
func (c *Client) GetAccountStatus(ctx context.Context) (*AccountStatus, error)
func (*Client) TranslateSentence ¶
type DeeplAPIKind ¶
type DeeplAPIKind string
const ( DeeplAPIFree DeeplAPIKind = "free" DeeplAPIPro DeeplAPIKind = "pro" )
type ErrorResponse ¶
type ErrorResponse struct {
ErrMessage string `json:"message"`
}
type TranslateResponse ¶
type TranslateResponse struct {
Translations []translation `json:"translations"`
}
Click to show internal directories.
Click to hide internal directories.