execprotoc

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package execprotoc provides an interface for interacting with proto requiring only paths to files on disk

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CodeGeneratorRequest

func CodeGeneratorRequest(protoPaths, gopath []string) (*plugin.CodeGeneratorRequest, error)

CodeGeneratorRequest returns a protoc CodeGeneratorRequest from running protoc on protoPaths TODO: replace getProtocOutput with some other way of getting the protoc ast. i.e. the binary data that will allow proto.Unmarshal to Unmashal the .proto file into a *plugin.CodeGeneratorRequest

func GeneratePBDotGo

func GeneratePBDotGo(protoPaths, gopath []string, outDir string) error

GeneratePBDotGo creates .pb.go files from the passed protoPaths and writes them to outDir.

Types

This section is empty.

Jump to

Keyboard shortcuts

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