Skip to content

Commit

Permalink
fix: make convert public
Browse files Browse the repository at this point in the history
  • Loading branch information
Rossiar committed Jun 12, 2020
1 parent 026f9fc commit dd111be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ func getBigqueryMessageOptions(msg *descriptor.DescriptorProto) (*protos.BigQuer
}, nil
}

func convert(req *plugin.CodeGeneratorRequest) (*plugin.CodeGeneratorResponse, error) {
func Convert(req *plugin.CodeGeneratorRequest) (*plugin.CodeGeneratorResponse, error) {
generateTargets := make(map[string]bool)
for _, file := range req.GetFileToGenerate() {
generateTargets[file] = true
Expand Down Expand Up @@ -429,7 +429,7 @@ func convertFrom(rd io.Reader) (*plugin.CodeGeneratorResponse, error) {
}

glog.V(1).Info("Converting input")
return convert(req)
return Convert(req)
}

func main() {
Expand Down

0 comments on commit dd111be

Please sign in to comment.