Commit from GitHub Actions (Generate Clients & Examples)

This commit is contained in:
asim
2021-11-03 17:01:33 +00:00
parent 8f42e94d11
commit 2b1122711f
5 changed files with 37 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
package example
import (
"fmt"
"os"
"github.com/micro/services/clients/go/helloworld"
)
// Stream returns a stream of "Hello $name" responses
func StreamsResponsesFromTheServerUsingWebsockets() {
helloworldService := helloworld.NewHelloworldService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := helloworldService.Stream(&helloworld.StreamRequest{
Name: "John",
})
fmt.Println(rsp, err)
}