<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Module on 极客老墨</title>
    <link>https://blog.hankmo.com/tags/module/</link>
    <description>Recent content in Module on 极客老墨</description>
    <generator>Hugo -- 0.138.0</generator>
    <language>zh-cn</language>
    <lastBuildDate>Wed, 25 Feb 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://blog.hankmo.com/tags/module/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Go模块管理踩坑实录：从入门到放弃再到真香</title>
      <link>https://blog.hankmo.com/posts/golang/go-modules-practical-guide/</link>
      <pubDate>Wed, 25 Feb 2026 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/posts/golang/go-modules-practical-guide/</guid>
      <description>Go模块管理让你头大？依赖冲突让你抓狂？版本号看不懂？replace指令不会用？这篇文章记录了我从抵触到真香的全过程，以及那些官方文档不会告诉你的坑。</description>
    </item>
    <item>
      <title>(译)Go1.13中处理错误</title>
      <link>https://blog.hankmo.com/posts/golang/go-err-113/</link>
      <pubDate>Fri, 05 May 2023 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/posts/golang/go-err-113/</guid>
      <description>在过去的十年中，Go 将错误作为值来处理 ，这对我们很有帮助。尽管标准库对错误的支持很少 —— 只有 `errors.New` 和 `fmt.Errorf` 函数，它们产生的错误只包含一条消息 —— 内置 `error` 接口允许 Go 程序员添加他们想要的任何信息。它所需要的只是一个实现 `Error` 方法的类型</description>
    </item>
    <item>
      <title>(译)Go错误是值</title>
      <link>https://blog.hankmo.com/posts/golang/go-err-handle/</link>
      <pubDate>Sun, 30 Apr 2023 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/posts/golang/go-err-handle/</guid>
      <description>一直以来，人们觉得一定有什么地方出了问题，而明显的目标就是 Go 本身。这是不幸的、误导性的，而且很容易纠正。也许刚接触 Go 的程序员会问，“我该如何处理错误？”，然后学习这种模式，最后就此打住。在其他语言中，可能会使用 try-catch 块或其他类似机制来处理错误。因此，程序员认为，我在我的旧语言中可以使用 try-catch 时，但在 go 中我只能输入 `if` `err` `!=` `nil` 来处理错误。随着时间的推移，Go 代码收集了许多这样的片段，结果感觉很笨拙。</description>
    </item>
    <item>
      <title>(译)Go模块：管理依赖项</title>
      <link>https://blog.hankmo.com/posts/golang/go-mod/</link>
      <pubDate>Wed, 19 Apr 2023 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/posts/golang/go-mod/</guid>
      <description>当您的代码使用外部包时，这些包（作为模块分发）成为依赖项。随着时间的推移，您可能需要升级或更换它们。Go 提供了依赖管理工具，可帮助您在合并外部依赖项时确保 Go 应用程序的安全。本文介绍如何执行一些任务来管理您代码中的依赖项，您可以使用 Go tools 执行其中的大部分操作。本主题还介绍了如何执行其他一些您可能会觉得有用的依赖相关任务。</description>
    </item>
  </channel>
</rss>
