<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ema_hiro</author_name>
  <author_url>https://blog.hatena.ne.jp/ema_hiro/</author_url>
  <blog_title>emahiro/b.log</blog_title>
  <blog_url>https://ema-hiro.hatenablog.com/</blog_url>
  <categories>
    <anon>buf</anon>
    <anon>proto</anon>
    <anon>Go</anon>
  </categories>
  <description>Overview なぜ protoc プラグインを自前で用意したくなったのか カスタムプラグインの作成 まとめ Overview protoc のプラグインを自分で書いてみたのでその備忘録です。 なぜ protoc プラグインを自前で用意したくなったのか ちょうど業務で RBAC 制御の実装を考えていたときに、過去何度もあたってきた「操作に対する Role、Permission をアタッチするマッピング」の管理方法をいくつか検討していて、これを proto で管理する拡張を作ることを考えました。 ただし、protoc にそういったカスタムフォーマットを parse する仕様はないので、自前で用…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fema-hiro.hatenablog.com%2Fentry%2F2025%2F08%2F10%2F000633&quot; title=&quot;Go で protoc のカスタムプラグインを書く - emahiro/b.log&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-08-10 00:06:33</published>
  <title>Go で protoc のカスタムプラグインを書く</title>
  <type>rich</type>
  <url>https://ema-hiro.hatenablog.com/entry/2025/08/10/000633</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
