Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Translate ¶
type Translate interface { // DetectLanguage 识别指定文本语言 DetectLanguage(ctx context.Context, req *translate.DetectLanguageReq) (*translate.DetectLanguageResp, error) // Translate 翻译文本到指定语言 Translate(ctx context.Context, req *translate.TranslateReq) (*translate.TranslateResp, error) }
func GetTranslateImpl ¶
func GetTranslateImpl(translateType translate.TranslatePlatformType) (Translate, error)
GetTranslateImpl 获取 对应的 翻译 的实现.
Click to show internal directories.
Click to hide internal directories.