# 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/fjzpygq
調試利器 go-spew
對於應用的調試,我們經常會使用 fmt.Println 來輸出關鍵變量的數據。或者使用 log 庫,將數據以 log 的形式輸出。對於基礎數據類型,上面兩種方法都可以比較方便地滿足需求。對於一些結構體類型數據,通常我們可以先將其序列化後再輸出。如果結構體中包含不可序列化的字段,比如 func 類型,那麼序列化就會拋出錯誤,阻礙調試。go-spew-------上面的需求,go-spew 可以完美地 ⌘ Read more