这是一个基于 golang 的命令行下中英文翻译工具,由于 golang 的交叉编译特性,可以快速编译到各个平台下。
送给喜欢酷酷命令行下模式的你。
Wechat Subscibe (不定时分享一些有意思的东西)

https://github.com/LockGit/Go/tree/master/go-dict
dict is a command line tool by go

wget https://raw.githubusercontent.com/LockGit/Go/master/go-dict/dict.go && go build -o /usr/local/bin/dict dict.go
➜ ~ dict I love you
您的输入: I love you
*******英汉翻译:*******
我爱你。
*******网络释义:*******
I Love You : 我爱你
I really love you : 真的爱你
I Do love you : 我是爱你的
➜ ~ dict 我爱你
您的输入: 我爱你
*******英汉翻译:*******
I love you
*******网络释义:*******
我爱你 : I Love You
我也爱你 : I Love You Too
我就爱你 : The Arrangement
1
rioshikelong121 Dec 4, 2019
有点意思 回头我用 node 也做一个
|
2
1O Dec 4, 2019
有点意思,回头我 做梦 也做一个
|
3
guonaihong Dec 4, 2019
可否扩展下这个工具。把代码里的中文注释转成英文注释。
|
4
gochat OP @guonaihong 这个很简单啊,改下源码就可以自己定制
|
5
zuokanyunqishi Dec 5, 2019 via Android
用了大半年了
|
6
zuokanyunqishi Dec 5, 2019 via Android
不好意思看错名字了。。
|
7
T3RRY Dec 5, 2019
+1
|
8
henryhu Dec 6, 2019
命令行翻译我用 google trans
|