---
title: "Clean Architecture in Go"
permalink: "https://blog.aotoki.me/series/clean-architecture-in-go/"
language: "zh-tw"
---

# Clean Architecture in Go


大約在 2022 年左右，我開始學習到領域驅動開發（Domain-Driven Design，簡稱 DDD）和清楚架構（Clean Architecture）的知識，並且嘗試應用在工作中。然而 DDD 涵蓋的範圍更大，因此先專注在 Clean Architecture 的學習，經過兩年左右的嘗試與實踐，大致上有了一個有體系的實踐方式，再加上 2024 年的 GopherDays 並未接受這個主題，最後選擇以連載形式呈現，因此有這系列的誕生。


- [反思：必要性 - Clean Architecture in Go](https://blog.aotoki.me/posts/2025/05/23/clean-architecture-in-go-reflection-the-necessary/index.md) — 2025-05-23
- [實作 LRU Cache - Clean Architecture in Go](https://blog.aotoki.me/posts/2025/05/16/clean-architecture-in-go-implement-lru-cache/index.md) — 2025-05-16
- [資料庫抽換 - SQLite（二） - Clean Architecture in Go](https://blog.aotoki.me/posts/2025/05/09/clean-architecture-in-go-add-sqlite-2/index.md) — 2025-05-09
- [資料庫抽換 - SQLite（一） - Clean Architecture in Go](https://blog.aotoki.me/posts/2025/05/02/clean-architecture-in-go-add-sqlite-1/index.md) — 2025-05-02
- [資料庫抽換 - BoltDB - Clean Architecture in Go](https://blog.aotoki.me/posts/2025/04/25/clean-architecture-in-go-add-boltdb/index.md) — 2025-04-25
- [輸入檢查 - Clean Architecture in Go](https://blog.aotoki.me/posts/2025/04/18/clean-architecture-in-go-validation/index.md) — 2025-04-18
- [gRPC Server 實作 - Clean Architecture in Go](https://blog.aotoki.me/posts/2025/04/11/clean-architecture-in-go-implement-grpc/index.md) — 2025-04-11
- [gRPC Server 準備 - Clean Architecture in Go](https://blog.aotoki.me/posts/2025/04/04/clean-architecture-in-go-setup-grpc/index.md) — 2025-04-04
- [Token 內容加密 - Clean Architecture in Go](https://blog.aotoki.me/posts/2025/03/28/clean-architecture-in-go-token-encryption/index.md) — 2025-03-28
- [在 Lookup Order 實作 Token 機制 - Clean Architecture in Go](https://blog.aotoki.me/posts/2025/03/21/clean-architecture-in-go-add-token-to-lookup-order/index.md) — 2025-03-21
- [在 Place Order 實作 Token 機制 - Clean Architecture in Go](https://blog.aotoki.me/posts/2025/03/14/clean-architecture-in-go-add-token-to-place-order/index.md) — 2025-03-14
- [Tokenization 機制設計 - Clean Architecture in Go](https://blog.aotoki.me/posts/2025/03/07/clean-architecture-in-go-tokenization/index.md) — 2025-03-07
- [Lookup Order 功能 - Clean Architecture in Go](https://blog.aotoki.me/posts/2025/02/28/clean-architecture-in-go-lookup-order/index.md) — 2025-02-28
- [Place Order 實作 Repository 部分 - Clean Architecture in Go](https://blog.aotoki.me/posts/2025/02/21/clean-architecture-in-go-place-order-repository/index.md) — 2025-02-21
- [Place Order 實作 Entity 部分 - Clean Architecture in Go](https://blog.aotoki.me/posts/2025/02/14/clean-architecture-in-go-place-order-entity/index.md) — 2025-02-14
- [Place Order 實作 Controller 部分 - Clean Architecture in Go](https://blog.aotoki.me/posts/2025/02/07/clean-architecture-in-go-place-order-controller/index.md) — 2025-02-07
- [操作介面設計 - Clean Architecture in Go](https://blog.aotoki.me/posts/2025/01/31/clean-architecture-in-go-operation-interface/index.md) — 2025-01-31
- [案例說明 - Clean Architecture in Go](https://blog.aotoki.me/posts/2025/01/24/clean-architecture-in-go-example-case/index.md) — 2025-01-24
- [wire 的依賴注入 - Clean Architecture in Go](https://blog.aotoki.me/posts/2025/01/17/clean-architecture-in-go-wire-dependency-injection/index.md) — 2025-01-17
- [目標設定 - Clean Architecture in Go](https://blog.aotoki.me/posts/2025/01/10/clean-architecture-in-go-target/index.md) — 2025-01-10
- [連載介紹 - Clean Architecture in Go](https://blog.aotoki.me/posts/2025/01/03/clean-architecture-in-go-introduce/index.md) — 2025-01-03

