# 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/bqyue7q
Go:說說 log-Fatal 和 panic 的區別**
要熟悉兩者區別之前,需要先了解 os.Exit() 函數。我這裏截一張 Go 源碼裏面的解釋:我們需要注意兩點:1、應用程序會被馬上退出2、defer 函數不會被執行你可以理解這就是直接 kill -9 程序,不給任何喘氣的機會。現在我們再來看看 log.Fatal 函數的定義:整體來說,他在 os.Exit() 之前做了一個日誌輸出。他的流程可以理解是:1、打印輸出內容2、退出應用程序3、def ⌘ Read more