Files
services/examples/function/delete/go/deleteAFunction.go
2021-10-11 11:54:53 +01:00

18 lines
335 B
Go
Executable File

package example
import (
"fmt"
"github.com/micro/services/clients/go/function"
"os"
)
//
func DeleteAfunction() {
functionService := function.NewFunctionService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := functionService.Delete(&function.DeleteRequest{
Name: "my-first-func",
Project: "tests",
})
fmt.Println(rsp, err)
}