RSSAmplifier

Software Engineering by Eugene Khabarov · Apr 13, 2023

How to generate code with Bazel

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

genrule + cat genrule + Go binary Add a generator dependency Golang uses code generation heavily. Here-and-there developers generate gRPC stubs, parts of source code, documentation, commit messages, etc. Go even has a special //go:generate directive. Bazel moves code generation to the next level. In this post, I’ll show you how to produce and build Go code with Bazel and with generators…

Read on ekhabarov.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.