<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kiharekato</author_name>
  <author_url>https://blog.hatena.ne.jp/kiharekato/</author_url>
  <blog_title>トランザム</blog_title>
  <blog_url>https://kiharekato.hatenablog.com/</blog_url>
  <categories>
    <anon>Go</anon>
    <anon>gorm</anon>
  </categories>
  <description>Golangのgormでenumの設定をする時に書き方に困ったのでその時のメモ type Item struct { ID uint `gorm:&quot;primary_key&quot;` Name string `gorm:&quot;size:255;not null&quot;` Sex string `gorm:&quot;type: enum('male', 'female', 'unspecified'); default: 'unspecified'; not null&quot;` } Models · GORM Guide</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkiharekato.hatenablog.com%2Fentry%2F2016%2F11%2F20%2F134150&quot; title=&quot;gormでModelのenumの設定をする書き方 - トランザム&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>2016-11-20 13:41:50</published>
  <title>gormでModelのenumの設定をする書き方</title>
  <type>rich</type>
  <url>https://kiharekato.hatenablog.com/entry/2016/11/20/134150</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
