99designs / 99designs/gqlgen

Implementation question regarding editable generated files like resolver

オープン
#2,509 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
Go
スター
10.8k
フォーク
1.3k
平均マージ
2日 36分
マージ済み PR(30日)
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 plugin authors 向けにドキュメント化することです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
go
領域
devtools
issue の種類
ドキュメント
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。