<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nyarla-net</author_name>
  <author_url>https://blog.hatena.ne.jp/nyarla-net/</author_url>
  <blog_title>カラクリスタ</blog_title>
  <blog_url>https://the.nyarla.jp/</blog_url>
  <categories>
  </categories>
  <description>概要: と言うモノを書いた というより、前も似たようなコードを書いていて、かつ、ついさっきも同じコードを書いていたので、その辺りの知見を Gist にまとめてみますた。 やり方としては、 builtin types に名前つけて Validation メソッドを生やす 構造体のフィールドの型には、上記の名前をつけた型を指定する あとは構造体の Validation 時に、上記 Validateメソッドを呼ぶ という感じです。 で、とりあえず僕はこれで実装を進めてたりしますが、ほかにもいい方法とかあればブログとか Qiita に記事書いてコメント欄等でお知らせしてくださると、それはきっとうれしい…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fthe.nyarla.jp%2Fposts%2F2014%2F06%2F28%2F002927%2F&quot; title=&quot;Golangでstruct fieldをValidationする例 - カラクリスタ&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>2014-06-28 00:29:27</published>
  <title>Golangでstruct fieldをValidationする例</title>
  <type>rich</type>
  <url>https://the.nyarla.jp/posts/2014/06/28/002927/</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
