bing

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TranslateText

func TranslateText(text string, source string, target string, conf conf.ConfTranslator) res.ResTranslator

Types

type Resp

type Resp struct {
	DetectedLanguage struct {
		Language string  `json:"language"`
		Score    float32 `json:"score"`
	} `json:"detectedLanguage"`
	Translations []RespTranslation `json:"translations"`
}

type RespTranslation

type RespTranslation struct {
	Text string `json:"text"`
}

Jump to

Keyboard shortcuts

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