Files
m3o-go/examples/helloworld/call/callTheHelloworldService/main.go
2021-12-09 15:06:12 +00:00

18 lines
321 B
Go
Executable File

package main
import (
"fmt"
"os"
"go.m3o.com/helloworld"
)
// Call returns a personalised "Hello $name" response
func main() {
helloworldService := helloworld.NewHelloworldService(os.Getenv("M3O_API_TOKEN"))
rsp, err := helloworldService.Call(&helloworld.CallRequest{
Name: "John",
})
fmt.Println(rsp, err)
}