如何使用 Golang 1.15(无服务器框架)部署 GCP 功能

How to deploy GCP functions with Golang 1.15 (Serverless framework)

有没有办法使用无服务器框架通过 Go 1.15 部署 GCP 功能?

看起来 1.15 可用 (https://cloud.google.com/appengine/docs/standard/go/runtime),但我找不到使用无服务器的方法。

serverless.yml

...
provider:
  name: google
  runtime: go115
...

我有这个 Invalid runtime 错误:

{"ResourceType":"gcp-types/cloudfunctions-v1:projects.locations.functions","ResourceErrorCode":"400","ResourceErrorMessage":{"code":400,"message":"The request has errors","status":"INVALID_ARGUMENT","details":[{"@type":"type.googleapis.com/google.rpc.BadRequest","fieldViolations":[{"field":"runtime","description":"Invalid runtime."}]}],"statusMessage":"Bad Request","requestPath":"https://cloudfunctions.googleapis.com/v1/projects/**************/locations/us-central1/functions/*****","httpMethod":"PATCH"}}

云函数 regular and beta version 不支持 GO1.15 运行时。

改用 Go1.13,或使用 Cloud 运行。