Release v1.3:
* Rename to stcli * Removed useless imports * Removed a no-op function call * Update README Signed-off-by: Aoi K <koizumi.aoi@kyoko-project.wer.ee> git-svn-id: file:///srv/svn/repo/suwako/trunk@7 0b558ee1-521d-8b46-a41b-40029c97c055
This commit is contained in:
6
main.go
6
main.go
@@ -1,5 +1,5 @@
|
||||
// $KyokoNet: stcli-go,v 1.2 2022/12/13 22:13:00 akoizumi Exp
|
||||
// Command line client for SimplyTranslate, a privacy friendly frontend to Google Translate
|
||||
// $KyokoNet: stcli,v 1.3 2022/12/13 23:57:00 akoizumi Exp
|
||||
// Command line client for SimplyTranslate, a privacy friendly frontend to other translation engines
|
||||
package main
|
||||
|
||||
import (
|
||||
@@ -10,7 +10,6 @@ import (
|
||||
"log"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"os"
|
||||
)
|
||||
var (
|
||||
engine string
|
||||
@@ -36,7 +35,6 @@ func main() {
|
||||
// It actually needs the two to have content.
|
||||
if len(input) == 0 || len(to) == 0 {
|
||||
log.Fatal("Missing either the text or the target language.")
|
||||
os.Exit(1)
|
||||
}
|
||||
// Map a variable to the struct
|
||||
var translate Translate
|
||||
|
||||
Reference in New Issue
Block a user