Socket
Book a DemoInstallSign in
Socket

github.com/MicrosoftTranslator/Text-Translation-API-V3-Go

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/MicrosoftTranslator/Text-Translation-API-V3-Go

Source
Go
Version
v0.0.0-20210303210831-d20af84b6df7
Version published
Created
Source

page_type: sample name: Microsoft Translator Go samples (v3) description: This repository includes Go code samples for Microsoft Translator. urlFragment: translator-go-v3 languages:

  • go products:
  • azure
  • azure-cognitive-services
  • azure-translator

Translator API V3 - Go Samples

This repository includes Go code samples for Microsoft Translator. Each sample corresponds to a Quickstart activity on doc.microsoft.com, including:

  • Translating text
  • Transliterating text
  • Identifying the language of source text
  • Getting alternate translations
  • Getting a complete list of supported languages
  • Determining sentence length

Get started with the Translator quickstart.

Prerequisites

Code samples

The code in this repository contains examples for all of the Microsoft Text Translator V3 API methods. Each file demonstrates a single method. To try out a method:

  • Create a new Go project in your favorite code editor.
  • Add the code provided below.
  • Replace the subscriptionKey value with an access key valid for your subscription.
  • Save the file with a '.go' extension.
  • Open a command prompt on a computer with Go installed.
  • Build the file, for example: 'go build example-code.go'.
  • Run the file, for example: 'example-code'.

Translator v3 API Reference

FAQs

Package last updated on 03 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts