99designs / 99designs/gqlgen

Implementation question regarding editable generated files like resolver

未关闭
#2,509 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
10.8k
派生
1.3k
平均合并
2 天 36 分钟
30 天内合并 PR
26

描述

How is the editable functionality achieved for resolver?

I'm writing a custom protoc plugin and would love to be able to edit the output.

There doesn't seem to be any temp/lock files associated with generating the resolver.

I was wondering could anyone give an overview of how this functionality that allows file edits to be persisted across further generate re-runs? Or just point to where in the code roughly it happens

贡献指南

打开贡献指南

调研方向

查看 gqlgen 的代码生成流程,特别是 resolver 是如何生成的,以及可编辑文件在哪里被处理。先检查 codegen package 和 resolver 生成逻辑。目标是理解让编辑内容在重复运行后仍能保留的机制,然后为 custom protoc plugins 作者编写文档。

由索引模型根据 Issue 内容生成。

评估

技术栈
go
领域
devtools
Issue 类型
文档
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。