后端开发
-
Go Senior Engineer Lecture (MOOC) 001
Overview DownloadDevelopment: vi emacs idea eclipse vs sublimeIDE: GoLand, liteIDEDefault GOPATH ~/go/src Basic Syntax Variable definition uses `var`. Variables defined outside fun…
-
Comprehensive Course for Go Engineers: protoc-gen-validate
protoc-gen-validate Introduction and Usage Guide ✅ What is protoc-gen-validate protoc-gen-validate (short for PGV) is a Protocol Buffers plugin used to add validation logic for str…
-
编程基础 0010_Go底层原理与源码精华
Translation is not yet available. Showing original content. Go 底层原理与源码精华 基于《Go 源码剖析》(雨痕, 第五版下册)、《Go 1.4 runtime》、《Go Study Notes 第四版》、《Golang 性能优化》、《Go Execution Modes》等资料整理,并补充现代 Go 版本的变…
-
Go Engineer Systematic Course: Protobuf Guide
Protocol Buffers Getting Started Guide 1. Introduction Protocol Buffers (protobuf for short) is a language-agnostic, platform-agnostic, extensible mechanism for serializing structu…
-
Go Senior Engineer Explains (MOOC) 003
003 Testing Complaining about others' approaches, the Go language uses table-driven tests. Test data and test logic are mixed together Unclear error messages All tests end once one…
-
编程基础 0009_testing详解
Translation is not yet available. Showing original content. Go testing 详解 目录 testing 包基础 表格驱动测试 子测试 t.Run 基准测试 Benchmark 测试覆盖率 TestMain httptest 包 Mock 和接口测试技巧 模糊测试 Fuzz 1. testing…
-
Programming Fundamentals 0008_Advanced Standard Library
Advanced Go Standard Library A systematic overview of the most commonly used packages in the Go standard library, focusing on io, os, bufio, strings, time, fmt, and more. 1. Core I…
-
Programming Basics 0007_Concurrency Patterns
Go Concurrency Patterns Common Go concurrency design patterns, each with complete runnable examples and descriptions of applicable scenarios 1. Worker Pool Pattern A fixed number o…
-
Programming Basics 0006_Advanced Concurrency_sync Package and Context
Advanced Concurrency: The sync Package and Context I. Detailed Explanation of the sync Package 1. sync.Mutex and sync.RWMutex // Mutex: Mutual exclusion lock, only one goroutine ca…
-
Programming Basics 0005_Advanced Error Handling
Advanced Go Error Handling Table of Contents Go Error Handling Philosophy The Essence of the error Interface Custom Error Types fmt.Errorf and %w for Wrapping Errors errors.Is and …