# 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/xmxdasa
Golang 實現延遲消息原理與方法**
【導讀】本文介紹了 Go 實現延遲消息的原理和實現。實現延遲消息最主要的兩個結構:環形隊列:通過 golang 中的數組實現,分成 3600 個 slot。任務集合:通過 map[key]Task,每個 slot 一個 map,map 的值就是我們要執行的任務。原理圖如下:實現代碼如下:package main; import (    "time"    "errors"    "fmt") / ⌘ Read more