Go generates Go protos.
(context.Context)
| 163 | |
| 164 | // Go generates Go protos. |
| 165 | func (p Proto) Go(context.Context) error { |
| 166 | mg.Deps(p.golang, p.golangGrpc, p.fieldMask, p.grpcGateway, p.json, p.flags) |
| 167 | |
| 168 | ttnpb, err := filepath.Abs(filepath.Join("pkg", "ttnpb")) |
| 169 | if err != nil { |
| 170 | return fmt.Errorf("failed to construct absolute path to pkg/ttnpb: %w", err) |
| 171 | } |
| 172 | return runGoTool(gofumpt, "-w", ttnpb) |
| 173 | } |
| 174 | |
| 175 | // GoClean removes generated Go protos. |
| 176 | func (p Proto) GoClean(context.Context) error { |