github.com/asynkron/protoactor-go@v0.0.0-20240308120642-ef91a6abee75/protobuf/protoc-gen-go-grain/main.go (about) 1 package main 2 3 import ( 4 "google.golang.org/protobuf/compiler/protogen" 5 ) 6 7 func main() { 8 protogen.Options{}.Run(func(gen *protogen.Plugin) error { 9 for _, f := range gen.Files { 10 if !f.Generate { 11 continue 12 } 13 generateFile(gen, f) 14 } 15 16 return nil 17 }) 18 }