# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 1
# self = https://watcher.sour.is/conv/f3aqzca
在 Go 中實施簡潔架構**
已經有很多關於 簡潔架構 [1] 的文章了。它的主要價值在於能夠維護無副作用的領域層,使我們能夠不需要利用沉重的 mock 來測試核心業務邏輯。 通過寫一個無需依賴的核心領域邏輯,以及外部適配器 (成爲它的數據庫存儲或者 API 層) 來實現的。這些適配器依賴於領域,而不是領域依賴適配器。在這篇文章,我們會看一下簡潔架構是如何實現一個簡單的 Go 項目。我們會提及一些額外的主題,例如容器化以及用 ⌘ Read more