Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 463 Bytes

README.md

File metadata and controls

28 lines (23 loc) · 463 Bytes

deeplx

A Go library used for unlimited DeepL translation

Installation

Install it with the go get command:

go get github.com/xiaoxuan6/deeplx

Usage

Then, you can create a new DeepL translation client and use it for translation:

import (
	"fmt"
	"github.com/xiaoxuan6/deeplx"
)

func main() {
	result, err := deeplx.Translate("Hello", "EN", "ZH")
	if err != nil {
		fmt.Printf("Error: %v\n", err)
		return
	}
	fmt.Println(result)
}