Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var EmbeddedFiles embed.FS
EmbeddedFiles bundles the proto annotation definitions shipped with the forge binary so they can be vendored into scaffolded projects without a network fetch.
Functions ¶
func GetForgeV1Proto ¶
GetForgeV1Proto returns the unified forge/v1/forge.proto file.
func WriteExampleProto ¶
WriteExampleProto writes an example proto file with the given service name.
func WriteForgeV1Proto ¶
WriteForgeV1Proto writes the unified forge.proto into destDir/forge.proto, rewriting the go_package option to point at forge's shared forgepb package.
Rationale: scaffolded projects vendor forge.proto into proto/forge/v1/ as a buf COMPILE input (other protos import its annotations), but they do NOT generate a local Go copy — buf.gen.yaml excludes forge/v1 from output and the project links forge/pkg/forgepb instead. The fixed go_package below is what makes the cross-file blank-imports in the generated *.pb.go resolve to that shared package.
func WriteTemplate ¶
WriteTemplate writes a project template to the specified path.
func WriteTemplateWithData ¶
WriteTemplateWithData writes a project template with data substitution.
Types ¶
This section is empty.