...

Package fake

import "google.golang.org/api/internal/examples/fake"
Overview
Index

Overview ▾

Package fake demonstrates how to use concrete services and fake the interactions with them in tests.

func TranslateText

func TranslateText(service *translate.Service, text, language string) (string, error)

TranslateText translates text to the given language using the provided service.