# 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/jxnvafq
每個 gopher 都需要了解的 Go AST
最近業務遷移,大約 100+ 個接口需要從舊的服務,遷到公司框架。遇到幾個痛點:結構體 dto 做 diff, 對比結果 自定義的結構體與 protobuf 生成的互相轉換,基於 json tag 這類工作要麼手寫 (編譯期), 要麼 reflect 反射實現 (運行時)。其中 #1 考濾到性能問題,手寫最優,但是結構體太大,同時 100+ 個接口遷移,工作量可以想象google 開源 ⌘ Read more