Files
m3o-go/examples/function/list/listFunctions/main.go
2021-11-03 15:36:34 +00:00

17 lines
273 B
Go
Executable File

package main
import (
"fmt"
"os"
"go.m3o.com/function"
)
// List all the deployed functions
func main() {
functionService := function.NewFunctionService(os.Getenv("M3O_API_TOKEN"))
rsp, err := functionService.List(&function.ListRequest{})
fmt.Println(rsp, err)
}