Tag

go programming

0 views collected around this technical thread.

Tencent Cloud Developer
Tencent Cloud Developer
Apr 1, 2025 · Artificial Intelligence

AI‑Assisted Code Refactoring for Go Projects: A Step‑by‑Step Guide

By following a seven‑step workflow—scanning Go code, discussing refactoring plans, creating structured Cursor rules, optionally deep‑diving into complex logic, iteratively applying rewrites with comments and tests, running AI self‑review, updating documentation, and performing full verification—developers combine AI speed with human judgment to efficiently refactor projects and reduce technical debt.

AI code refactoringautomationgo programming
0 likes · 13 min read
AI‑Assisted Code Refactoring for Go Projects: A Step‑by‑Step Guide
Bilibili Tech
Bilibili Tech
Sep 8, 2023 · Backend Development

Investigation of Goroutine Leak in Go

The article details how a sudden surge in goroutine and heap usage was traced to repeatedly creating gRPC clients instead of reusing a singleton, leading to blocked goroutines and TCP connections, and explains using pprof, stack traces, and tools like goleak to detect and prevent such leaks.

GoMemory LeakPerformance Tuning
0 likes · 13 min read
Investigation of Goroutine Leak in Go
Bilibili Tech
Bilibili Tech
May 27, 2022 · Backend Development

Evolution of Bilibili's API Gateway Architecture: From Monolithic to Microservices

The article traces Bilibili’s API gateway evolution from a crash‑prone 2015 PHP monolith through a Go‑based bilizone, then fragmented BFF services, to a unified microservice gateway that centralizes routing, authentication, rate limiting, and governance, enabling scalable, decoupled development and a full API ecosystem.

API GatewayBFF PatternBilibili Architecture
0 likes · 11 min read
Evolution of Bilibili's API Gateway Architecture: From Monolithic to Microservices
Baidu Geek Talk
Baidu Geek Talk
May 19, 2022 · Fundamentals

Singleton Design Pattern: Implementation and Practical Applications

The Singleton design pattern guarantees a single, globally accessible instance, reducing memory overhead and global variables, with eager (init) and lazy (sync.Once) thread‑safe implementations in Go, and practical uses such as configuration management in Python, shared DB connections in PHP, and UI components like toasts in JavaScript.

JavaScript ProgrammingPHP ProgrammingPython Programming
0 likes · 16 min read
Singleton Design Pattern: Implementation and Practical Applications
Baidu Geek Talk
Baidu Geek Talk
Feb 16, 2022 · Fundamentals

SDK Development Best Practices: Design Principles and Coding Standards from Baidu

Baidu’s SDK development guide stresses writing reusable, stable libraries by applying SOLID design principles, exposing errors, ensuring thorough testing, maintaining backward compatibility, minimizing dependencies, and enhancing usability and understandability, while enforcing strict commit linking, Golint checks, branch versioning, and formal code‑review processes.

Baidu EngineeringSDK DevelopmentSOLID principles
0 likes · 21 min read
SDK Development Best Practices: Design Principles and Coding Standards from Baidu
Tencent Cloud Developer
Tencent Cloud Developer
Jan 5, 2022 · Fundamentals

Understanding Skip Lists: Principles, Implementation in Go, and Redis Integration

The article explains skip list fundamentals, shows how probabilistic multi‑level indexing yields O(log n) search and O(n) space, provides a complete Go implementation with insertion, deletion and search functions, compares Redis’s enhanced skip list used in sorted sets, and answers common design questions.

Data StructureLinked ListRedis
0 likes · 17 min read
Understanding Skip Lists: Principles, Implementation in Go, and Redis Integration
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Mar 10, 2020 · Fundamentals

Understanding Raft: A Beginner’s Guide to Distributed Consensus in Go

This article introduces the Raft distributed consensus algorithm, explains its core concepts such as replicated state machines, leader‑follower roles, client interaction, fault tolerance, the CAP trade‑off, and why Go is a suitable language for implementing Raft.

Raftdistributed consensusfault tolerance
0 likes · 12 min read
Understanding Raft: A Beginner’s Guide to Distributed Consensus in Go
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Jun 22, 2018 · Backend Development

Master Go Channels: From Basics to Advanced Patterns

This article explains Go's channel primitive in depth, covering its conceptual model, types, operations, internal queues, rule scenarios, practical code examples, and best‑practice tips for building clear and efficient concurrent programs.

Gochannelconcurrency
0 likes · 12 min read
Master Go Channels: From Basics to Advanced Patterns
Tencent Cloud Developer
Tencent Cloud Developer
Mar 20, 2018 · Cloud Native

A Comprehensive Guide to Terraform Provider Development

This guide walks readers through building a Terraform provider in Go, explaining its architecture, key files such as main.go and provider.go, implementing CRUD functions that call the Tencent Cloud SDK, handling Terraform’s lifecycle, and writing unit tests with the testAccProviders framework.

Provider DevelopmentTerraformcloud infrastructure
0 likes · 15 min read
A Comprehensive Guide to Terraform Provider Development