Skip to content

turk/free-google-translate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Install

go get github.com/turk/free-google-translate

Example usage

package main

import (
	"fmt"
	"github.com/turk/free-google-translate"
	"net/http"
)

func main() {
	client := http.Client{}
	t := translator.NewTranslator(&client)
	result, _ := t.Translate("Hello!", "en", "ro")
	fmt.Println(result)
	// Output: "Salut!"
}

Sponsors

sponsors