protogen

command module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2021 License: MIT Imports: 9 Imported by: 0

README

protogen

protogen is a program that scans a directory structure for *.proto files and generates go code from them.

It takes a yaml file as input that describes the conditions around the code generation.

# protoc_path is the path to the protoc compiler
protoc_path: $PROJ_ROOT/.tools/bin/protoc

# include_paths are the include file search paths
include_paths:
  - $PROJ_ROOT

# go_opts are the go options for protoc
go_opts:
  - paths=source_relative

# go_plugins are the plugins to be used
go_plugins:
  - grpc
# go_out is the root directory for output
go_out: $PROJ_ROOT

# paths are the paths to scan for *.proto files
paths:
  - $PROJ_ROOT/pkg

# excluded_paths are paths that should not be considered when running protoc
excluded_paths:
  - $PROJ_ROOT/pkg/excluded

The folder example contains a complete example.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
example

Jump to

Keyboard shortcuts

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