Use shorter file names

From looking around standard library packages, I see that filenames are
typically single words only (save for the `_test` prefix and
OS/arch-specific files), so let's follow that style here.

git-svn-id: file:///srv/svn/repo/mai/trunk@4 e410bdd4-646f-c54f-a7ce-fffcc4f439ae
This commit is contained in:
fattalion
2022-08-11 20:28:16 +00:00
parent b379b6e59d
commit 86e79cd5bd
2 changed files with 0 additions and 0 deletions

16
engine.go Normal file
View File

@@ -0,0 +1,16 @@
package simplytranslate_engines
type TranslationResult struct {
SourceLanguage Language
TranslatedText string
}
type TranslationEngine interface {
InternalName() string
DisplayName() string
SourceLanguages() ([]Language, error)
TargetLanguages() ([]Language, error)
Translate(text string, from Language, to Language) (TranslationResult, error)
SupportsAutodetect() bool
DetectLanguage(text string) (Language, error)
}