translate

package
v0.0.0-...-91027f6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Translate

func Translate(zh string) (string, error)

Types

type TransResult

type TransResult struct {
	Src string `json:"src"`
	Dst string `json:"dst"`
}

type TslResult

type TslResult struct {
	From         string        `json:"from"`
	To           string        `json:"to"`
	TransResults []TransResult `json:"trans_result"`
	ErrorCode    string        `json:"error_code"`
	ErrorMsg     string        `json:"error_msg"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL