github.com/ronaksoft/rony@v0.16.26-0.20230807065236-1743dbfe6959/internal/codegen/codegen.go (about) 1 package codegen 2 3 import "google.golang.org/protobuf/compiler/protogen" 4 5 //go:generate go run update_version.go 6 7 type ( 8 Generator interface { 9 Generate(out *protogen.GeneratedFile, in ...*protogen.File) error 10 } 11 GeneratorFunc func(out *protogen.GeneratedFile, in ...*protogen.File) error 12 ) 13 14 func (f GeneratorFunc) Generate(out *protogen.GeneratedFile, in ...*protogen.File) error { 15 return f(out, in...) 16 }