Files
m3o-go/examples/helloworld/stream/streamsAreCurrentlyTemporarilyNotSupportedInClients/main.go
2021-11-03 10:19:08 +00:00

18 lines
334 B
Go
Executable File

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