# 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/wl25aba
Go Gin 框架請求自動驗證和數據綁定,看完這篇就會用了**
之前做項目基本上公司是用 gRPC 和 echo 這兩個框架的組合,後來 Gin 框架在 Go 圈越來越流行,陸續我在公司接觸到的項目也開始有人用 Gin 框架開發了。因爲我也是偶爾開發,像 Gin 框架裏邊參數的模型驗證和綁定這些沒有系統去學習,都是粘貼一下其他人的代碼,改成我要的參數和模型,這裏說的模型就是保存請求數據的 Struct。慢慢我發現每個人寫的風格都不一樣,有直接一個個接收參數再賦 ⌘ Read more