Consider supporting JEP 445
@janell-chen 已经在做这个了。
开始于 2023年6月6日。
评估
这个 Issue 还没有评估数据。
描述
JEP 445 (Preview in JDK 21) introduces unnamed classes and instance main methods. This could be a boon to writing functions if done right changing our result from this:
package com.example;
import com.google.cloud.functions.HttpFunction;
import com.google.cloud.functions.HttpRequest;
import com.google.cloud.functions.HttpResponse;
public class HelloWorld implements HttpFunction {
@Override
public void service(HttpRequest request, HttpResponse response)
throws Exception {
response.getWriter().write("Hello, World\n");
}
}
To something like this:
import com.google.cloud.functions.FuncFramework;
void main() {
FuncFramework.http((req, res) -> response.getWriter().write("Hello, World\n"));
}
- 主要语言
- Java
- 星标
- 154
- 派生
- 63
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
GoogleCloudPlatform/functions-framework-java 的其他 Issue
-
enhancement P2
难度 1/5 1 小时以内 新手友好度 65/100
-
enhancement
GoogleCloudPlatform/functions-framework-java#375 · 1 条评论 · 1 个 reaction · 已指派 1 人 ·
-
enhancement P2
难度 5/5 一周以上 新手友好度 30/100
GoogleCloudPlatform/functions-framework-java#372 · 1 条评论 ·
-
enhancement P3
GoogleCloudPlatform/functions-framework-java#261 · 已指派 1 人 ·
-
P3 question
难度 4/5 3-5 天 新手友好度 35/100
GoogleCloudPlatform/functions-framework-java#254 · 1 条评论 ·
查看 GoogleCloudPlatform/functions-framework-java 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 1/5 1 小时以内 新手友好度 88/100
checkstyle/test-configs#263 ·
-
bug
难度 1/5 1 小时以内 新手友好度 90/100
apache/cloudstack#14222 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
-
1.0.0-alpha2 Type/Improvement
难度 2/5 1-3 小时 新手友好度 68/100
wso2/dpdp-accelerator#272 ·