Files
m3o-go/examples/function/list/listFunctions/main.go
2021-12-09 15:06:12 +00:00

16 lines
272 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)
}