# 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/zsscubq
基於 Go 的泛型快速實現一個功能完備的路由**
Go 語言的路由庫有很多,功能上都大同小異,最大的差異應該是路由函數的簽名,官方採用了 http.Handler 接口,而大部分非官方路由都將 http.ResponseWriter 和 http.Request 合併成了一個對象。本文介紹的庫 https://github.com/issue9/mux 利用 go1.18 對泛型的支持,實現了用戶自定義該功能的需求,僅需要幾步即可實現一個完善的路 ⌘ Read more