Documentation ¶
Overview ¶
Package engine implements translation support for the translation engine so that the need for translating text can be achieved by creating specific translation engine.
Source code and other details for the project are available at GitHub:
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type YoudaoEngine ¶
type YoudaoEngine struct {
// contains filtered or unexported fields
}
YoudaoEngine contains some parameters that you want to use youdao Translation Service.
func NewYoudaoEngine ¶
func NewYoudaoEngine(query, from, to, voice string, conf *config.Config) *YoudaoEngine
NewYoudaoEngine create a translation engine for you based on youdao Translation Service.
func (*YoudaoEngine) Query ¶
func (e *YoudaoEngine) Query() (res string, err error)
Query returns the translation results without errors.
Click to show internal directories.
Click to hide internal directories.