<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Go on 黄文卓 | DevOps Engineer</title><link>https://socake.github.io/tags/go/</link><description>Recent content in Go on 黄文卓 | DevOps Engineer</description><generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>17691281867@163.com (Wenzhuo Huang)</managingEditor><webMaster>17691281867@163.com (Wenzhuo Huang)</webMaster><copyright>© 2026 Wenzhuo Huang</copyright><lastBuildDate>Sun, 12 Apr 2026 14:00:00 +0800</lastBuildDate><atom:link href="https://socake.github.io/tags/go/index.xml" rel="self" type="application/rss+xml"/><item><title>Linux 火焰图实战：从采集到定位问题</title><link>https://socake.github.io/posts/linux-flame-graph-practice/</link><pubDate>Sun, 12 Apr 2026 14:00:00 +0800</pubDate><author>17691281867@163.com (Wenzhuo Huang)</author><guid>https://socake.github.io/posts/linux-flame-graph-practice/</guid><description>CPU 飙高、响应慢、内存泄漏——这三类问题用火焰图都能快速定位。本文从怎么读火焰图开始，讲到 perf、async-profiler、py-spy 各自的适用场景，最后用一个真实的 Go 服务案例走完完整排查流程。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://socake.github.io/posts/linux-flame-graph-practice/featured.jpg"/></item><item><title>gRPC 微服务实践：协议、负载均衡与 Kubernetes 集成</title><link>https://socake.github.io/posts/grpc-microservices-practice/</link><pubDate>Sun, 12 Apr 2026 10:00:00 +0800</pubDate><author>17691281867@163.com (Wenzhuo Huang)</author><guid>https://socake.github.io/posts/grpc-microservices-practice/</guid><description>从协议原理到 Kubernetes 生产落地，系统梳理 gRPC 微服务的核心实践：Protobuf 向后兼容设计、拦截器链（日志/限流/OTel）、长连接负载不均问题（headless Service + round_robin vs Envoy L7）、健康检查 Probe 配置、以及 grpc-gateway REST 共存方案。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://socake.github.io/posts/grpc-microservices-practice/featured.jpg"/></item><item><title>Temporal 分布式工作流引擎实战：Worker、Activity、重试语义与生产部署</title><link>https://socake.github.io/posts/temporal-workflow-engine/</link><pubDate>Wed, 08 Apr 2026 10:00:00 +0800</pubDate><author>17691281867@163.com (Wenzhuo Huang)</author><guid>https://socake.github.io/posts/temporal-workflow-engine/</guid><description>长流程业务编排历来头疼——状态机、定时器、补偿、幂等、失败恢复都要自己写。Temporal 用 event sourcing + 确定性 replay 把这些问题一次性解决。本文以 Go SDK 为主线，从编程模型、Workflow 确定性约束、Activity 重试、Signal/Query、child workflow、到生产集群部署、监控和容量规划，给出可直接落地的范式。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://socake.github.io/posts/temporal-workflow-engine/featured.jpg"/></item><item><title>ko 实战：无 Dockerfile 构建 Go 容器镜像的正确姿势</title><link>https://socake.github.io/posts/ko-go-image-build/</link><pubDate>Fri, 09 Jan 2026 10:00:00 +0800</pubDate><author>17691281867@163.com (Wenzhuo Huang)</author><guid>https://socake.github.io/posts/ko-go-image-build/</guid><description>同样是构建 Go 镜像，用 Dockerfile + BuildKit 要 2-3 分钟，用 ko 只需要 5-20 秒。差距来自 ko 不走 daemon、不写 tar、直接把 Go 编译产物塞进 OCI manifest。本文讲清楚这套 &amp;lsquo;Dockerfile-less&amp;rsquo; 构建到底怎么落地到生产，以及什么时候不该用它。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://socake.github.io/posts/ko-go-image-build/featured.jpg"/></item><item><title>Go 标准库速查：运维工程师常用</title><link>https://socake.github.io/docs/languages/go/go%E6%A0%87%E5%87%86%E5%BA%93%E9%80%9F%E6%9F%A5/</link><pubDate>Tue, 09 Dec 2025 10:00:00 +0800</pubDate><author>17691281867@163.com (Wenzhuo Huang)</author><guid>https://socake.github.io/docs/languages/go/go%E6%A0%87%E5%87%86%E5%BA%93%E9%80%9F%E6%9F%A5/</guid><description>不查文档快速写出对的代码——整理了运维场景最常用的 Go 标准库用法，每节都是可直接复制的代码片段</description></item><item><title>Go 并发编程：goroutine 与 channel 实践</title><link>https://socake.github.io/docs/languages/go/go%E5%B9%B6%E5%8F%91%E7%BC%96%E7%A8%8B/</link><pubDate>Tue, 09 Dec 2025 10:00:00 +0800</pubDate><author>17691281867@163.com (Wenzhuo Huang)</author><guid>https://socake.github.io/docs/languages/go/go%E5%B9%B6%E5%8F%91%E7%BC%96%E7%A8%8B/</guid><description>用 Go 并发特性加速运维工具：批量检查服务状态、并发执行 SSH 命令、控制超时与取消，都在这篇文章里</description></item><item><title>Go 错误处理最佳实践</title><link>https://socake.github.io/docs/languages/go/go%E9%94%99%E8%AF%AF%E5%A4%84%E7%90%86/</link><pubDate>Tue, 09 Dec 2025 10:00:00 +0800</pubDate><author>17691281867@163.com (Wenzhuo Huang)</author><guid>https://socake.github.io/docs/languages/go/go%E9%94%99%E8%AF%AF%E5%A4%84%E7%90%86/</guid><description>在运维工具中正确处理错误：错误包装与解包、可重试判断、统一错误输出格式、带上下文的错误信息，避免常见的错误处理反模式</description></item><item><title>Go 语言基础速查（运维向）</title><link>https://socake.github.io/docs/languages/go/go%E5%9F%BA%E7%A1%80%E9%80%9F%E6%9F%A5/</link><pubDate>Tue, 09 Dec 2025 10:00:00 +0800</pubDate><author>17691281867@163.com (Wenzhuo Huang)</author><guid>https://socake.github.io/docs/languages/go/go%E5%9F%BA%E7%A1%80%E9%80%9F%E6%9F%A5/</guid><description>用 Go 写运维工具前必须掌握的语言基础，聚焦运维场景常用特性，配合实用代码示例</description></item><item><title>Go 运维工具开发实战</title><link>https://socake.github.io/docs/languages/go/go%E8%BF%90%E7%BB%B4%E5%B7%A5%E5%85%B7%E5%BC%80%E5%8F%91/</link><pubDate>Tue, 09 Dec 2025 10:00:00 +0800</pubDate><author>17691281867@163.com (Wenzhuo Huang)</author><guid>https://socake.github.io/docs/languages/go/go%E8%BF%90%E7%BB%B4%E5%B7%A5%E5%85%B7%E5%BC%80%E5%8F%91/</guid><description>从零写一个 Go 运维工具：cobra CLI 框架、执行 kubectl 命令、调用 K8s API、配置 zap 日志、viper 配置管理，完整可运行的代码示例</description></item><item><title>Kubernetes Operator 开发实战：Go + controller-runtime 完全指南</title><link>https://socake.github.io/posts/kubernetes-operator-development/</link><pubDate>Wed, 03 Dec 2025 14:00:00 +0800</pubDate><author>17691281867@163.com (Wenzhuo Huang)</author><guid>https://socake.github.io/posts/kubernetes-operator-development/</guid><description>用 Go + controller-runtime 开发生产级 Kubernetes Operator 的完整实战指南。以 DatabaseCluster Operator 为例，深入讲解 CRD 设计、Reconcile 模式、Status Conditions、Finalizer 防孤儿资源、Leader Election、指标暴露、Webhook 验证，以及 envtest + Kind 测试策略。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://socake.github.io/posts/kubernetes-operator-development/featured.jpg"/></item><item><title>Pyroscope 持续性能剖析生产实战：给每一行代码一个性能画像</title><link>https://socake.github.io/posts/pyroscope-continuous-profiling/</link><pubDate>Wed, 02 Jul 2025 10:00:00 +0800</pubDate><author>17691281867@163.com (Wenzhuo Huang)</author><guid>https://socake.github.io/posts/pyroscope-continuous-profiling/</guid><description>为什么 metrics/logs/traces 之外还需要 profiling，它解决的是什么问题，Pyroscope 的架构是什么，怎样以 2%~5% overhead 把它铺到整个 K8s 集群。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://socake.github.io/posts/pyroscope-continuous-profiling/featured.jpg"/></item></channel></rss>