Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 506 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 506 Bytes

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!"
	}