<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hayashikunsan</author_name>
  <author_url>https://blog.hatena.ne.jp/hayashikunsan/</author_url>
  <blog_title>はやし雑記</blog_title>
  <blog_url>https://blog.hayashikun.com/</blog_url>
  <categories>
    <anon>技術系</anon>
  </categories>
  <description>go で proto の Marshal/Unmarshal したときに、軽くハマっておや？となったので調べてみた こんな感じの proto があるとする syntax = &quot;proto3&quot;; package hoge; message A { B b = 1; } message B { C c1 = 1; C c2 = 2; } message C { D d = 1; } message D { int32 e = 1; } A を Marshal して []byte にして、ゴニョゴニョして、再度 A に戻すコードを書くつもりが、 間違えて B を Marshal して、それを A に…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hayashikun.com%2Fentry%2F2022%2F10%2F08%2F190307&quot; title=&quot;proto の Unmarshal は Marshal する proto と違っててもエラーにならないことがある - はやし雑記&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>https://cdn-ak.f.st-hatena.com/images/fotolife/h/hayashikunsan/20221008/20221008185255.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-10-08 19:03:07</published>
  <title>proto の Unmarshal は Marshal する proto と違っててもエラーにならないことがある</title>
  <type>rich</type>
  <url>https://blog.hayashikun.com/entry/2022/10/08/190307</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
