myjeffxie / googletranslatefree

Google translations for free in golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google Translate FREE in golang

Note: This is not normal commercial Translator API provided by Google.

Install:
go get github.com/bas24/googletranslatefree

Example usage:

	package main

	import (
		"fmt"
		gt "github.com/bas24/googletranslatefree"
	)

	func main(){
		const text string = `Hello, World!`
		// you can use "auto" for source language
		// so, translator will detect language
		result, _ := gt.Translate(text, "en", "es")
		fmt.Println(result)
		// Output: "Hola, Mundo!"
	}

About

Google translations for free in golang


Languages

Language:Go 100.0%