# 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/4o63aeq
sync-Mutex 設計與實現**
概述--sync.Mutex 實現了互斥鎖同步原語。內部實現----我們來探究一下 sync.Mutex 的內部實現,文件路徑爲 $GOROOT/src/sync/mutex.go,筆者的 Go 版本爲 go1.19 linux/amd64。狀態標識變量------const ( mutexLocked = 1 << iota // 1, 互斥鎖已鎖定 mutexWoken ⌘ Read more