<?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>模块管理 on 极客老墨</title>
    <link>https://blog.hankmo.com/tags/%E6%A8%A1%E5%9D%97%E7%AE%A1%E7%90%86/</link>
    <description>Recent content in 模块管理 on 极客老墨</description>
    <generator>Hugo -- 0.163.3</generator>
    <language>zh-cn</language>
    <lastBuildDate>Wed, 25 Feb 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://blog.hankmo.com/tags/%E6%A8%A1%E5%9D%97%E7%AE%A1%E7%90%86/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>[GoLang避坑实战-15] Go Module 救命指南：彻底告别依赖冲突和环境混乱</title>
      <link>https://blog.hankmo.com/go-modules-intro/</link>
      <pubDate>Fri, 06 Jun 2025 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/go-modules-intro/</guid>
      <description>深入理解 Go Modules：从 go.mod 文件结构到版本管理，从 replace 指令到私有仓库配置，掌握 Go 依赖管理的方方面面。</description>
    </item>
    <item>
      <title>Rust 学习笔记 11：包与模块 (Packages &amp; Modules)</title>
      <link>https://blog.hankmo.com/rust-learning-11-modules/</link>
      <pubDate>Thu, 06 Feb 2025 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/rust-learning-11-modules/</guid>
      <description>Rust 的模块系统曾是劝退无数人的噩梦。use, mod, pub, crate, package... 到底谁是谁？为什么我就是引不到那个文件？今天我们彻底搞清楚。</description>
    </item>
    <item>
      <title>Python教程21：包（Package）</title>
      <link>https://blog.hankmo.com/python-tutorial-21-packages/</link>
      <pubDate>Fri, 20 Sep 2024 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/python-tutorial-21-packages/</guid>
      <description>理解Python包的概念：创建包、__init__.py、子包、相对导入，掌握大型项目的代码组织方式。</description>
    </item>
    <item>
      <title>Python教程20：模块基础</title>
      <link>https://blog.hankmo.com/python-tutorial-20-modules-basics/</link>
      <pubDate>Fri, 06 Sep 2024 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/python-tutorial-20-modules-basics/</guid>
      <description>理解Python模块系统：创建模块、导入模块、模块搜索路径，掌握代码组织的基础。</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>
