You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
392 B
12 lines
392 B
// Package generator provides an abstract interface to code generators. |
|
package generator |
|
|
|
import ( |
|
plugin "github.com/golang/protobuf/protoc-gen-go/plugin" |
|
) |
|
|
|
// Generator is an abstraction of code generators. |
|
type Generator interface { |
|
// Generate generates output files from input .proto files. |
|
Generate(req *plugin.CodeGeneratorRequest) ([]*plugin.CodeGeneratorResponse_File, error) |
|
}
|
|
|