【文件属性】:
文件名称:google-translate-tk:通过Golang计算google translation的令牌(tk)
文件大小:2KB
文件格式:ZIP
更新时间:2021-02-03 12:14:25
golang google token google-translate google-translate-api
用法
import gt "github.com/kyai/google-translate-tk"
获取tkk ,此值通常不会更改,因此可以对其进行缓存。
tkk , _ := gt . GetTKK ()
取得tk ,给出要翻译的文字并tkk 。
tk := gt . GetTK ( "hello" , tkk )
【文件预览】:
google-translate-tk-master
----tkk.go(452B)
----tk_test.go(136B)
----README.md(262B)
----tk.go(2KB)