Categorygithub.com/lib-x/deepl
modulepackage
1.0.6
Repository: https://github.com/lib-x/deepl.git
Documentation: pkg.go.dev

# README

deepl

free deepl translate api in go

Go Report Card

reference deepLX ,Reverse-engineering the DeepL Windows client has improved several details.

deepL windows Client download Url: https://appdownload.deepl.com/windows/0install/deepl.xml

Example:

import "github.com/lib-x/deepl"
translateResp, err := Translate("", "zh", "I love Go programming language")
	if err != nil {
		t.Fatal(err)
	}
log.Println(translateResp.Result.Texts[0].Text)

also you an set proxy to use the deepl lib.see in the test

# Functions

Translate request data.
WithDeeplProSession set deepl pro session.if session is set,.
WithHttpProxy set http proxy.if both httpProxy and sock5 proxy are set, http proxy will be over-wrote by sock5 proxy .example http://127.0.0.1:1080.
WithHttpProxyEx set http proxy.if both httpProxy and sock5 proxy are set, http proxy will be over-wrote by sock5 proxy .example http://http://127.0.0.1:1080 ignoreSSLVerification: ignore SSL verification.
WithSocket5Proxy set socket5Proxy.if both httpProxy and sock5 proxy are set, http proxy will be over-wrote by sock5 proxy example 127.0.0.1:1080.
WithSocket5ProxyEx set socket5Proxy.if both httpProxy and sock5 proxy are set, http proxy will be over-wrote by sock5 proxy example 127.0.0.1:1080 ignoreSSLVerification: ignore SSL verification.
WithTagHandling TagHandling: type of tags to parse before translation, options are "html" and "xml" Todo: support xml options,see https://www.nuget.org/packages/DeepL.net/.

# Constants

No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author