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

16 lines
284 B
Go
Executable File

package example
import (
"fmt"
"os"
"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)
}