Files
m3o-go/examples/function/proxy/proxyUrl/main.go
2021-12-16 19:51:32 +00:00

18 lines
300 B
Go
Executable File

package main
import (
"fmt"
"os"
"go.m3o.com/function"
)
// Return the backend url for proxying
func main() {
functionService := function.NewFunctionService(os.Getenv("M3O_API_TOKEN"))
rsp, err := functionService.Proxy(&function.ProxyRequest{
Id: "helloworld",
})
fmt.Println(rsp, err)
}