# 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/tido5lq
Go 如何實現分佈式鎖**
分佈式鎖原則上是一種可以解決不同節點上的程序避免資源衝突的一種鎖。實現一個分佈式鎖可以有很多中方式,下面以 Redis 爲例,說明如何在 Go 中實現一個分佈式鎖。首先你需要一個 Redis 客戶端,這裏可以選擇 go-redis 庫,這是一個功能齊全的 redis 客戶端。安裝這個庫的命令是:go get -u github.com/go-redis/redis然後你可以使用下面的代碼實 ⌘ Read more