# 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/xwu2k7a
Golang 依賴注入:dig**
【導讀】本文介紹依賴注入庫 dig。一、簡介go 是否需要依賴注入庫曾經是一個飽受爭議的話題。實際上是否需要依賴注入,取決於編程風格。依賴注入是一種編程模式。比較適合面向對象編程,在函數式編程中則不需要。go 是一門支持多範式編程的語言,所以在使用面向對象的大型項目中,還是建議按照實際情況判斷是否應該使用依賴注入模式。二、主流的依賴注入庫依賴注入實現的是一件很小的事情,所以單純實現依賴注入的軟件包 ⌘ Read more