# 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/z2xp3sq
Go 中線程安全 map 方案選型**
概述--Go 語言標準庫中的 map 數據類型並不是線程安全的,多個 goroutine 可以併發讀取同一個 map, 但是不能併發寫入同一個 map, 否則會引發 panic。爲了解決這個問題,實際開發中通常會使用下面的三種方案中的一個或多個:通過 map 數據類型 + 鎖 (互斥鎖, 讀寫鎖) 標準庫內置的 sync.Map 對象 (支持併發讀寫) 分段鎖 作爲補充,本文會順 ⌘ Read more