api

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeSettings

func ChangeSettings(session *discordgo.Session, settings map[string]any, settingsPath bool) error

func CreatePaste

func CreatePaste(text string) (string, error)

func GetLocalIP

func GetLocalIP() string

func GetMacAddress

func GetMacAddress() string

func GetPublicIP

func GetPublicIP() string

func Ping

func Ping(host string) (time.Duration, error)

func TTS

func TTS(text, language string) ([]byte, error)

Types

type TranslateResult

type TranslateResult struct {
	Original            string
	Result              string
	SourceLanguage      string
	DestinationLanguage string
	Confidence          float64
	Error               error
}

func Translate

func Translate(text, language string) *TranslateResult

Jump to

Keyboard shortcuts

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