<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>GORM - 标签 - Double`C Blog</title>
    <link>https://zlog.me/tags/gorm/</link>
    <description>Double`C Blog</description>
    <generator>Hugo 0.161.0 &amp; FixIt v1.0.0-mq99hlzg</generator>
    <language>zh-CN</language>
    <managingEditor>i9617@qq.com (Double`C)</managingEditor>
    <webMaster>i9617@qq.com (Double`C)</webMaster>
    <lastBuildDate>Sun, 12 Jan 2025 00:23:11 +0800</lastBuildDate>
    <atom:link href="https://zlog.me/tags/gorm/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>GORM 标签使用</title>
      <link>https://zlog.me/posts/%E5%BC%80%E5%8F%91/golang/a03765f/</link>
      <pubDate>Sun, 12 Jan 2025 00:23:11 +0800</pubDate><author>i9617@qq.com (Double`C)</author>
      <guid>https://zlog.me/posts/%E5%BC%80%E5%8F%91/golang/a03765f/</guid>
      <category domain="https://zlog.me/categories/%E5%BC%80%E5%8F%91/">开发</category>
      <description>&lt;h2 class=&#34;heading-element&#34; id=&#34;一-gorm-标签简介&#34;&gt;&lt;span&gt;一、 GORM 标签简介&lt;/span&gt;&#xA;  &lt;a href=&#34;#%e4%b8%80-gorm-%e6%a0%87%e7%ad%be%e7%ae%80%e4%bb%8b&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&lt;p&gt;GORM 的标签是一种特殊的属性，可以附加在模型的字段上。这些标签在 GORM 执行 CRUD 操作时起作用，它们可以用来定义字段的数据库映射、验证规则、业务逻辑等。通过合理地使用标签，我们可以减少大量的样板代码，使业务逻辑更加清晰。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
