Files
m3o-go/examples/function/list/listFunctions.go
2021-10-29 06:38:17 +00:00

16 lines
295 B
Go
Executable File

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