You are viewing documentation for a release that is no longer maintainedSee documentation for the latest supported version 3 or the latest supported version 4.
11.5.2. Go 功能模板结构
当使用 Knative(kn)CLI 创建 Go 功能时,项目目录类似于典型的 Go 项目。唯一的例外是额外的 func.yaml 配置文件,用于指定镜像。
Go 功能有一些限制。唯一的要求是您的项目必须在 function 模块中定义,并且必须导出功能 Handle()。