mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-12 10:55:11 +00:00
19 lines
345 B
Go
Executable File
19 lines
345 B
Go
Executable File
package example
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"github.com/go.m3o.com/function"
|
|
)
|
|
|
|
// Delete a function by name
|
|
func DeleteAfunction() {
|
|
functionService := function.NewFunctionService(os.Getenv("M3O_API_TOKEN"))
|
|
rsp, err := functionService.Delete(&function.DeleteRequest{
|
|
Name: "my-first-func",
|
|
Project: "tests",
|
|
})
|
|
fmt.Println(rsp, err)
|
|
}
|