Skip to content

OwO-Network/gDeepLX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gDeepLX

gDeepLX is a Go library used for DeepL translation.

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.