<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Gin on Vespeng.Record</title>
    <link>https://vespeng.github.io/tags/gin/</link>
    <description>Recent content in Gin on Vespeng.Record</description>
    <generator>Hugo</generator>
    <language>zh-Hans</language>
    <lastBuildDate>Wed, 19 Nov 2025 23:10:00 +0800</lastBuildDate>
    <atom:link href="https://vespeng.github.io/tags/gin/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Go 项目中是否有必要引入 DI 组件？Wire、Dig 与手动管理对比分析</title>
      <link>https://vespeng.github.io/posts/the-necessity-of-di-in-go-projects/</link>
      <pubDate>Wed, 19 Nov 2025 23:10:00 +0800</pubDate>
      <guid>https://vespeng.github.io/posts/the-necessity-of-di-in-go-projects/</guid>
      <description>本文通过用户模块实例，详细对比了 Go 项目中手动组装、Wire 和 Dig 三种依赖管理方式的实现代码、优缺点及适用场景。</description>
    </item>
    <item>
      <title>Go 项目实战：实现 JWT 认证中间件</title>
      <link>https://vespeng.github.io/posts/go-practice-implementing-jwt-auth-middleware/</link>
      <pubDate>Fri, 25 Jul 2025 21:15:00 +0800</pubDate>
      <guid>https://vespeng.github.io/posts/go-practice-implementing-jwt-auth-middleware/</guid>
      <description>在构建安全可靠的 Go Web 服务时，JWT(JSON Web Token)认证是常用的解决方案。本文将介绍如何在 Gin 框架中实现完整的 JWT 认证方案，同时包含灵活的 Redis 集成选项。</description>
    </item>
    <item>
      <title>Go 项目实战：全局异常处理</title>
      <link>https://vespeng.github.io/posts/go-practical-global-exception-handling/</link>
      <pubDate>Sun, 09 Feb 2025 17:10:00 +0800</pubDate>
      <guid>https://vespeng.github.io/posts/go-practical-global-exception-handling/</guid>
      <description>在 Go 项目开发中，有效的异常处理是确保程序健壮性和稳定性的关键因素之一。全局异常处理机制能够统一处理项目中可能出现的各种异常情况，提高代码的可读性、可维护性以及错误处理的一致性。</description>
    </item>
    <item>
      <title>Go 项目实战：如何部署多环境开发</title>
      <link>https://vespeng.github.io/posts/go-practical-multi-environment-development/</link>
      <pubDate>Sat, 25 Jan 2025 17:00:00 +0800</pubDate>
      <guid>https://vespeng.github.io/posts/go-practical-multi-environment-development/</guid>
      <description>在 Web 项目的开发过程中，能够在不同的环境（如开发、测试、生产）中进行灵活部署是至关重要的。不同环境通常需要不同的配置，如服务器端口、数据库连接信息、缓存设置等。</description>
    </item>
    <item>
      <title>Go 项目实战：如何优雅的处理日志</title>
      <link>https://vespeng.github.io/posts/go-practical-processing-log/</link>
      <pubDate>Wed, 22 Jan 2025 21:40:00 +0800</pubDate>
      <guid>https://vespeng.github.io/posts/go-practical-processing-log/</guid>
      <description>在 Go 项目开发中，日志处理是一项至关重要的任务。本文将详细介绍如何在 Go 项目中优雅地处理日志，包括日志的级别、格式、输出以及如何使用第三方日志库等方面。</description>
    </item>
    <item>
      <title>Go 项目实战：搭建高效的 Gin Web 目录结构</title>
      <link>https://vespeng.github.io/posts/go-practical-gin-directory-structure/</link>
      <pubDate>Sun, 19 Jan 2025 21:30:00 +0800</pubDate>
      <guid>https://vespeng.github.io/posts/go-practical-gin-directory-structure/</guid>
      <description>Gin框架，作为Go语言生态中备受青睐的Web开发框架，凭借其卓越的性能、简洁的设计以及丰富的功能特性，在众多选项中脱颖而出。本文旨在深入剖析如何在使用Gin框架的过程中，构建一个既高效又便于管理的项目架构。</description>
    </item>
  </channel>
</rss>
