modulepackage
0.0.0-20230113031853-3e16094015e2
Repository: https://github.com/noborus/go-textra.git
Documentation: pkg.go.dev
# README
go-textra
This is a library that translates with みんなの自動翻訳(minnano-jidou-honyaku)@textra's API clinet.
You need a textra account.
package main
import (
"fmt"
"log"
"github.com/noborus/go-textra"
)
var config = textra.Config{
ClientID: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", // API key
ClientSecret: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", // API secret
Name: "UserID", // UserID
}
func main() {
cli,err := textra.New(config)
if err != nil {
log.Fatal(err)
}
ja, err := cli.Translate(textra.GENERAL_EN_JA, "This is a pen.")
if err != nil {
log.Fatal(err)
}
fmt.Println(ja) // これはペンです。
}
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
Access URL error.
Access URL error.
API key error.
No description provided by the author
Authorization error.
Bilingual entries.
List of bilingual entries.
Execution error.
Finance - NT 金融NT 【英語 - 日本語】.
Finance - NT 金融NT 【英語 - 日本語】.
General - NT 【English - Japanese】 汎用NT 【英語 - 日本語】.
General - NT 【Japanese - English】.
法令契約NT 【英語 - 日本語】.
法令契約NT 【英語 - 日本語】.
Machine translation request.
Maximum request error(day).
Maximum request error(min).
Maximum request error (simultaneous requests).
General - NT+ (For Experimental Use Only / Technology Transfer Not Allowed) 【English - Japanese】 汎用NT+(実験用・技術移転不可) 【英語 - 日本語】.
General - NT+ (For Experimental Use Only / Technology Transfer Not Allowed) 汎用NT+(実験用・技術移転不可) 【英語 - 日本語】.
Machine translation request entries.
Name error.
No data.
OAuth authentication error.
OAuth header error.
Patents - NT 特許NT 【英語 - 日本語】.
Patents - NT 特許NT 【英語 - 日本語】.
Request key error.
Request name error.
Request parameter error.
Request parameter error (for data size limit).
Glossary entries.
List of glossaries entries.
対話NT(音声翻訳エンジン専用) 【英語 - 日本語】.
対話NT(音声翻訳エンジン専用) 【英語 - 日本語】.
# 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
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