azure

package
v0.0.0-...-14dc775 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewTranslator

func NewTranslator(url string, options ...Option) (*Client, error)

func (*Client) Translate

func (c *Client) Translate(ctx context.Context, content string, options *translator.TranslateOptions) (*translator.Translation, error)

type Option

type Option func(*Client)

func WithClient

func WithClient(client *http.Client) Option

func WithToken

func WithToken(token string) Option

Jump to

Keyboard shortcuts

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