# 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/gdcqx7q
Go 語言實現創建型設計模式 - 單例模式**
01 介紹單例模式(Singleton Pattern)是一種創建型設計模式,它確保一個類只有一個實例,並提供一個全局訪問點。因爲它同時解決了兩個問題,所以它違反了單一職責原則。02 使用場景什麼場景適合使用單例模式呢?某個類對於所有客戶端只有一個可用的實例比如記錄應用程序的運行日誌,因爲記錄日誌的文件只有一個,所以只能有一個日誌類的實例向日志文件中寫入,否則會出現日誌內容互相覆蓋的問題。需要更加 ⌘ Read more