Tagged articles
11 articles
Page 1 of 1
Code Wrench
Code Wrench
Feb 2, 2026 · Operations

Isolate Goroutine Panics in 3 Lines: Build Self‑Healing Go Probes

Go's unhandled panics can crash an entire monitoring agent, but by isolating each goroutine with a defer‑recover wrapper and optionally adding a circuit‑breaker, you can achieve self‑healing probes that continue operating despite transient failures, improving tool resilience and overall system availability.

Opscircuit-breakerpanic
0 likes · 9 min read
Isolate Goroutine Panics in 3 Lines: Build Self‑Healing Go Probes
Raymond Ops
Raymond Ops
Dec 20, 2024 · Fundamentals

Mastering Go Error Handling: From Errors to Panic and Recover

This article explains Go's error handling conventions, including returning error values, creating custom errors with the errors package, using fmt.Errorf, handling runtime panics, and recovering from them with defer, plus advanced patterns like panic‑recover wrappers and closure‑based error management, illustrated with comprehensive code examples.

Error Handlingcustom errorspanic
0 likes · 13 min read
Mastering Go Error Handling: From Errors to Panic and Recover
FunTester
FunTester
Aug 22, 2024 · Fundamentals

Master Go Error Handling: Built-in Errors, Wrapping, and Panic/Recover

This article explains Go's unique error handling approach, covering the built-in error interface, creating errors with errors.New, wrapping errors using fmt.Errorf, defining custom error types, logging errors with the log package, and managing severe failures with panic and recover, complete with practical code examples.

Error HandlingGocustom error
0 likes · 15 min read
Master Go Error Handling: Built-in Errors, Wrapping, and Panic/Recover
MaGe Linux Operations
MaGe Linux Operations
Mar 14, 2024 · Backend Development

Mastering Go Error Handling: Panic, Recover, and Best Practices

This article explains Go's error handling conventions, the built‑in error interface, how to use panic and recover for runtime exceptions, and presents practical patterns—including closure‑based handling and custom package guidelines—to write robust backend code.

Error HandlingGopanic
0 likes · 12 min read
Mastering Go Error Handling: Panic, Recover, and Best Practices
macrozheng
macrozheng
Apr 23, 2023 · Backend Development

Master Spring Retry: Using @Retryable and @Recover for Robust Backend Retries

This guide explains how to use Spring Retry’s @Retryable and @Recover annotations in Spring Boot, covering dependency setup, enabling retries, annotating methods, configuring backoff policies, handling exhausted retries, and important precautions for reliable backend retry mechanisms.

JavaRetryableSpring Boot
0 likes · 7 min read
Master Spring Retry: Using @Retryable and @Recover for Robust Backend Retries
Zhuanzhuan Tech
Zhuanzhuan Tech
Feb 23, 2022 · Backend Development

Go Error Handling Practices in ZuanZuan Operations: Usage and Management

This article explains how ZuanZuan's operations team applies Go's error handling mechanisms—including error values, panic/recover, sentinel errors, and custom error types—along with practical guidelines and code examples to improve reliability and maintainability of production services.

Backend DevelopmentError HandlingGo
0 likes · 13 min read
Go Error Handling Practices in ZuanZuan Operations: Usage and Management
Python Crawling & Data Mining
Python Crawling & Data Mining
Nov 9, 2020 · Fundamentals

Master Go Functions: Scope, Defer, Panic & Recover Explained

This article delves into advanced Go function concepts, illustrating memory allocation diagrams, variable scopes, the use of const for globals, the behavior of defer statements, and handling errors with panic and recover, complete with code examples and visual outputs to deepen your understanding.

GoVariable Scopeconst
0 likes · 8 min read
Master Go Functions: Scope, Defer, Panic & Recover Explained
360 Tech Engineering
360 Tech Engineering
Apr 13, 2020 · Backend Development

Understanding Exception and Error Handling in Go

This article explains how Go handles exceptions and errors using defer, panic, and recover, compares it with try‑catch in other languages, demonstrates the built‑in error interface, custom error types, and provides multiple code examples and analyses of their output.

Error HandlingExceptionGo
0 likes · 6 min read
Understanding Exception and Error Handling in Go
Alibaba Cloud Native
Alibaba Cloud Native
Dec 25, 2019 · Backend Development

Master Go Panic/Recover, Thread Limits, and Error Handling – A Practical Guide

This article explores Go's panic/recover mechanism, identifies which runtime errors can be recovered, explains unrecoverable scenarios like thread exhaustion and map race, demonstrates best‑practice error handling with Go 1.13 features and popular error libraries, and offers concrete logging strategies for robust server development.

Error HandlingGOMAXPROCSGo
0 likes · 34 min read
Master Go Panic/Recover, Thread Limits, and Error Handling – A Practical Guide