# 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/hmy35mq
如何在 Gin 框架中使用泛型構建完全解耦的請求驗證層**
請求驗證可能是任何 Web 框架中最無聊但最關鍵的中間層。今天,我將展示在 golang 中的 gin 框架 中(使用泛型)的正確實踐。1. 目標---------Gin 與 validator 庫集成以進行請求驗證,即 模型綁定與驗證。我們將在很大程度上依靠這一點來實現我們的目標。我們的目標是: 構建一個抽象,通過這個抽象使得請求驗證與請求處理程序完全解耦,例如,在您的常規 gin 的 han ⌘ Read more