Files
m3o-go/examples/helloworld/stream/streamsAreCurrentlyTemporarilyNotSupportedInClients.go
2021-10-29 10:44:29 +00:00

18 lines
384 B
Go
Executable File

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