Go Programming World
Author

Go Programming World

Mobile version of tech blog https://jianghushinian.cn/, covering Golang, Docker, Kubernetes and beyond.

66
Articles
0
Likes
187
Views
0
Comments
Recent Articles

Latest from Go Programming World

66 recent articles
Go Programming World
Go Programming World
May 27, 2024 · Backend Development

Designing an Effective Go Web Project Directory Structure

This article explains the principles and recommended layout for organizing a large Go web project, covering readability, extensibility, standard Go project layout, and detailed descriptions of directories such as /cmd, /internal, /pkg, /configs, /deployments, and supporting files to improve maintainability and scalability.

Webgolang-standardsinternal
0 likes · 11 min read
Designing an Effective Go Web Project Directory Structure
Go Programming World
Go Programming World
May 21, 2024 · Backend Development

Comprehensive Guide to Using sqlx with Go for Database Operations

This article provides an in‑depth tutorial on the sqlx package for Go, covering installation, type design, database connection methods, query execution, named parameters, transaction handling, prepared statements, unsafe scanning, field‑mapping customization, and practical code examples to simplify working with relational databases.

GoSQLsqlx
0 likes · 23 min read
Comprehensive Guide to Using sqlx with Go for Database Operations
Go Programming World
Go Programming World
May 16, 2024 · Backend Development

Using Monkey Patching with gomonkey for Unit Testing in Go

This article demonstrates how to apply Monkey Patching in Go using the gomonkey library to unit‑test a simple HTTP service, covering code examples, dependency analysis, patch creation, test execution parameters, and practical considerations such as inlining and concurrency limitations.

GoHTTPMonkey Patching
0 likes · 12 min read
Using Monkey Patching with gomonkey for Unit Testing in Go
Go Programming World
Go Programming World
May 11, 2024 · Backend Development

Testing HTTP Applications in Go: Isolating External Dependencies

This article explains how to write reliable unit tests for Go HTTP applications by isolating external dependencies, covering server‑side handlers, client‑side monitoring, and using tools such as net/http/httptest, testify, and gock to create test doubles and mock HTTP services.

GoHTTPTestify
0 likes · 21 min read
Testing HTTP Applications in Go: Isolating External Dependencies
Go Programming World
Go Programming World
May 10, 2024 · Backend Development

Comprehensive Guide to Writing Tests in Go: Unit, Benchmark, Example, and Fuzz Testing

This article provides a detailed tutorial on Go's testing framework, covering test classifications such as unit, benchmark, example, and fuzz tests, explaining naming conventions, file organization, test execution commands, parallel testing, coverage measurement, and how to integrate these practices into robust backend development workflows.

TestingUnit Testbenchmark
0 likes · 31 min read
Comprehensive Guide to Writing Tests in Go: Unit, Benchmark, Example, and Fuzz Testing