Add manual page and set default instance to the main one.

Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>

git-svn-id: file:///srv/svn/repo/suwako/trunk@17 0b558ee1-521d-8b46-a41b-40029c97c055
This commit is contained in:
yakumo.izuru
2023-09-21 02:27:50 +00:00
parent ac0db74f9b
commit 8071aee295
3 changed files with 45 additions and 2 deletions

View File

@@ -39,9 +39,9 @@ func main() {
if len(engine) == 0 || len(instance) == 0 {
log.Println("SUWAKO_ENGINE and/or SUWAKO_INSTANCE are unset")
log.Println("Defaulting to translate.chaotic.ninja with engine 'google'")
log.Println("Defaulting to simplytranslate.org with engine 'google'")
engine = "google"
instance = "https://translate.chaotic.ninja"
instance = "https://simplytranslate.org"
}
if len(input) == 0 {
log.Fatal("Missing input text.")