MichaelCharles / deepel

Unofficial Go client for the DeepL private API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DeepL Go Client

Unofficial Go client for the private API of deepl.com.

Usage

package main

import (
	"fmt"

	"github.com/ravernkoh/deepl"
)

func main() {
	// Instantiate client and configure
	cli := deepl.NewClient()

	// Translate some simple text
	res, _ := cli.Translate([]string{"Hello, world!"}, deepl.English, deepl.German)
	fmt.Println(res[0])
}

Installation

$ go get github.com/ravernkoh/deepl

About

Unofficial Go client for the DeepL private API

License:GNU General Public License v3.0


Languages

Language:Go 100.0%