# 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/sywxmva
Golang 實現帶過期時間的單機鎖**
單機鎖要實現的目標:加鎖:會記錄一個鎖的擁有者 owner 解鎖:只有鎖的擁有者才能解鎖 如果有設定鎖的超時時間,到時間自動解鎖(避免忘記解鎖) 代碼很簡單,直接貼源碼。相信聰明的你一看就懂項目地址: https://github.com/gofish2020/expiredlockpackage expiredlockimport ( "bytes" "context" "fm ⌘ Read more