diff --git a/main.go b/main.go new file mode 100644 index 0000000..62998a2 --- /dev/null +++ b/main.go @@ -0,0 +1,14 @@ +package main + +import ( + "./trans" + "os" + "fmt" + "strings" +) + + +func main() { + results := trans.New(os.Args[1], "en", "hu").Translate() + fmt.Println(strings.Join(results, "\n")) +} diff --git a/trans.go b/trans/trans.go similarity index 91% rename from trans.go rename to trans/trans.go index becaccd..81ce7ea 100644 --- a/trans.go +++ b/trans/trans.go @@ -1,17 +1,12 @@ -package main +package trans import ( "fmt" - "os" "os/exec" "strings" "log" ) -func main() { - results := New(os.Args[1], "en", "hu").Translate() - fmt.Println(strings.Join(results, "\n")) -} type transJob struct { word string