Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2021-12-12 09:32:32 +00:00
parent a803ac6cb2
commit cde5ee4b4a
26 changed files with 991 additions and 940 deletions

View File

@@ -0,0 +1,20 @@
package main
import (
"fmt"
"os"
"go.m3o.com/function"
)
//
func main() {
functionService := function.NewFunctionService(os.Getenv("M3O_API_TOKEN"))
rsp, err := functionService.Update(&function.UpdateRequest{
Entrypoint: "helloworld",
Name: "helloworld",
Repo: "github.com/m3o/nodejs-function-example",
Runtime: "nodejs14",
})
fmt.Println(rsp, err)
}