# 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/4uos7ia
Golang 鎖常見錯誤場景 - 鎖拷貝**
一、前言golang 中的鎖分爲互斥鎖、讀寫鎖、原子鎖即原子操作。在 Golang 裏有專門的方法來實現鎖,就是 sync 包,這個包有兩個很重要的鎖類型。一個叫 Mutex, 利用它可以實現互斥鎖。一個叫 RWMutex,利用它可以實現讀寫鎖。基本遵循兩大原則:1、可以隨便讀,多個 goroutine 同時讀2、寫的時候,啥也不能幹。不能讀也不能寫讀鎖的時候無需等待讀鎖的結束 讀鎖的時候要 ⌘ Read more