Files
services/examples/helloworld/stream/go/streamsAreCurrentlyTemporarilyNotSupportedInClients.go
2021-09-21 16:36:39 +01:00

17 lines
411 B
Go
Executable File

package example
import (
"fmt"
"github.com/micro/services/clients/go/helloworld"
"os"
)
// Stream returns a stream of "Hello $name" responses
func StreamsAreCurrentlyTemporarilyNotSupportedInClients() {
helloworldService := helloworld.NewHelloworldService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := helloworldService.Stream(&helloworld.StreamRequest{
Name: "not supported",
})
fmt.Println(rsp, err)
}