README ¶ Translate Translate library for golang! Usage Translate from english to chinese package main import ( "context" "fmt" "github.com/vcapi/translate" ) func main() { input := "How old are you?" sLang := "en" tLang := "zh-CN" ctx := context.TODO() val, err := translate.Google(ctx, input, sLang, tLang) if err != nil { panic(err) } fmt.Println(val) } LICENSE MIT License Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func Google(ctx context.Context, text, sl, tl string) (string, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Google ¶ func Google(ctx context.Context, text, sl, tl string) (string, error) Types ¶ This section is empty. Source Files ¶ View all Source files google.go Click to show internal directories. Click to hide internal directories.