protogen

command module
v0.0.0-...-d08e724 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2022 License: MIT Imports: 11 Imported by: 0

README

Protogen

go report

A tool for generating arbitrary code based on protobuf files using go templates & typescript.

How to use

Usage:
  protogen [flags]

Flags:
      --generator string   directory containing the generator
  -h, --help               help for protogen
      --out string         output directory
      --source string      source directory / files
      --include string     include directories
Generating code

Invoking the following command: protogen --generator ./mygenerator --out ./pkg/service --source ./api will:

  1. Read all *.proto files in the ./api directory and parse them
  2. Execute the index.tsx generator class in the ./mygenerator directory
  3. Place all files generated in the ./pkg/service directory
Writing generators

The examples directory contains examples of generators.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
js

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL