<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Gorm on Mr.Yu-技术笔记</title>
    <link>https://yujinping.top/tags/gorm/</link>
    <description>Recent content in Gorm on Mr.Yu-技术笔记</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-CN</language>
    <lastBuildDate>Sat, 09 Apr 2022 12:35:00 +0800</lastBuildDate>
    <atom:link href="https://yujinping.top/tags/gorm/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>go使用各种orm时无法映射time.Time类型的解决方案</title>
      <link>https://yujinping.top/post/go/go_scan_time_error/</link>
      <pubDate>Sat, 09 Apr 2022 12:35:00 +0800</pubDate>
      <guid>https://yujinping.top/post/go/go_scan_time_error/</guid>
      <description>问题现象 无论是使用各种 ORM 工具（sqlx,xorm,gorm 等）访问 MySQL 时，当将记录集映射为结构体的时候，当结构体中有属性类型是time.Time 的时候，总是报unsupported Scan, storing driver.Value type []uint8 into type *time.Time 的错误，并且结构体中的 time.Time 类型字段被设置为默认零值。 解决方案 解决方法是使用 MySQL 驱动程序自带</description>
    </item>
  </channel>
</rss>
