gDeepLX is a Go library used for DeepL translation.
Core repository OwO-Network/DeepLX already supports more features.
Install it with the go get command:
go get github.com/OwO-Network/gdeeplx
Then, you can create a new DeepL translation client and use it for translation:
import (
"fmt"
"github.com/OwO-Network/gdeeplx"
)
func main() {
result, err := gdeeplx.Translate("Hello World!", "EN", "ZH", 0)
if err != nil {
fmt.Printf("Error: %v\n", err)
return
}
fmt.Println(result)
}
gDeepLX © Vincent Young, Released under the MIT License.