@@ -22,7 +22,7 @@ import (
2222 "golang.org/x/text/language"
2323)
2424
25- func Example_NewClient () {
25+ func ExampleNewClient () {
2626 ctx := context .Background ()
2727 client , err := translate .NewClient (ctx )
2828 if err != nil {
@@ -36,7 +36,7 @@ func Example_NewClient() {
3636 }
3737}
3838
39- func Example_Translate () {
39+ func ExampleClient_Translate () {
4040 ctx := context .Background ()
4141 client , err := translate .NewClient (ctx )
4242 if err != nil {
@@ -54,7 +54,7 @@ func Example_Translate() {
5454 fmt .Println (translations [0 ].Text )
5555}
5656
57- func Example_DetectLanguage () {
57+ func ExampleClient_DetectLanguage () {
5858 ctx := context .Background ()
5959 client , err := translate .NewClient (ctx )
6060 if err != nil {
@@ -67,7 +67,7 @@ func Example_DetectLanguage() {
6767 fmt .Println (ds )
6868}
6969
70- func Example_SupportedLanguages () {
70+ func ExampleClient_SupportedLanguages () {
7171 ctx := context .Background ()
7272 client , err := translate .NewClient (ctx )
7373 if err != nil {
0 commit comments