Files
m3o-go/examples/function/runtimes/listRuntimes/main.go
2022-03-01 15:48:51 +00:00

16 lines
284 B
Go
Executable File

package main
import (
"fmt"
"os"
"go.m3o.com/function"
)
// Return a list of supported runtimes
func main() {
functionService := function.NewFunctionService(os.Getenv("M3O_API_TOKEN"))
rsp, err := functionService.Runtimes(&function.RuntimesRequest{})
fmt.Println(rsp, err)
}