Documentation ¶
Index ¶
- type DummyEngine
- func (t DummyEngine) IsSourceSizeOK(src string) bool
- func (t DummyEngine) LoadConfig(conf config.Config) error
- func (t DummyEngine) Name() string
- func (t DummyEngine) SetEndpoint(endpoint string) error
- func (t DummyEngine) SupportedSourceLanguages() ([]language.Tag, error)
- func (t DummyEngine) SupportedTargetLanguages(srcLang language.Tag) ([]language.Tag, error)
- func (t DummyEngine) Translate(ctx context.Context, srcLang language.Tag, tgtLang language.Tag, src string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DummyEngine ¶
type DummyEngine struct { }
func (DummyEngine) IsSourceSizeOK ¶
func (t DummyEngine) IsSourceSizeOK(src string) bool
This implementation can only translate a source shorter than 100 chars
func (DummyEngine) LoadConfig ¶
func (t DummyEngine) LoadConfig(conf config.Config) error
func (DummyEngine) Name ¶
func (t DummyEngine) Name() string
func (DummyEngine) SetEndpoint ¶
func (t DummyEngine) SetEndpoint(endpoint string) error
func (DummyEngine) SupportedSourceLanguages ¶
func (t DummyEngine) SupportedSourceLanguages() ([]language.Tag, error)
This implementation only supports American/British English and Japanese
func (DummyEngine) SupportedTargetLanguages ¶
This implementation only supports certain combination
Click to show internal directories.
Click to hide internal directories.