Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shenjinti/baidu_translate_go
Baidu translate golang sdk / 百度翻译golang SDK
https://github.com/shenjinti/baidu_translate_go
Last synced: 17 days ago
JSON representation
Baidu translate golang sdk / 百度翻译golang SDK
- Host: GitHub
- URL: https://github.com/shenjinti/baidu_translate_go
- Owner: shenjinti
- License: mit
- Created: 2021-09-08T04:22:46.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-08T04:42:03.000Z (over 3 years ago)
- Last Synced: 2024-11-10T17:11:51.892Z (3 months ago)
- Language: Go
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# baidu_translate_go
Baidu translate golang sdk / 百度翻译 golang SDK### How to use.
Get your `appid` and `appkey` from baidu developer console. https://fanyi-api.baidu.com/manage/developer```go
package mainimport (
"fmt"
"github.com/shenjinti/baidu_translate_go"
)func main() {
appId := ""
appKey := ""bt := baidutranslate.NewBaiduTranslate(appId, appKey)
v, _ := bt.Text("auto", "pt", "Hello world")
fmt.Println("result", v)
}```