Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
SetRetryMax(retryMax int) Client
SetConnTimeout(connTimeout time.Duration) Client
SetURL(apiURL string) Client
SetKey(apiKey string) Client
SetEnableTransliteration(enable bool) Client
GetLanguages(ctx context.Context, code string) ([]Language, error)
Translate(ctx context.Context, q, source, target string) (*TranslateResponse, error)
}
func NewTranslator ¶
func NewTranslator() Client
type LanguagesResponse ¶
type TranslateRequest ¶
Click to show internal directories.
Click to hide internal directories.