main.go 302 B

123456789101112131415
  1. package main
  2. import (
  3. "github.com/lyft/protoc-gen-star"
  4. "github.com/lyft/protoc-gen-star/lang/go"
  5. "github.com/envoyproxy/protoc-gen-validate/module"
  6. )
  7. func main() {
  8. pgs.
  9. Init(pgs.DebugEnv("DEBUG_PGV")).
  10. RegisterModule(module.Validator()).
  11. RegisterPostProcessor(pgsgo.GoFmt()).
  12. Render()
  13. }