Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Latest commit

 

History

History
35 lines (27 loc) · 727 Bytes

README.md

File metadata and controls

35 lines (27 loc) · 727 Bytes

gDeepLX

gDeepLX is a Go library used for DeepL translation.

Deprecated

Core repository OwO-Network/DeepLX already supports more features.

Installation

Install it with the go get command:

go get github.com/OwO-Network/gdeeplx

Usage

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)
}

Author

gDeepLX © Vincent Young, Released under the MIT License.