# 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/cddrjga
Go: 在回覆HTTP請求後忘記寫return**
在編寫 HTTP 處理程序時,容易在已經回覆 HTTP 請求後忘記返回語句。這可能會導致奇怪的事情產生,我們期望在發生錯誤後停止處理程序,然而實際中並沒有停止。下面的例子描述了這種情況。func handler(w http.ResponseWriter, req http.Request) { err := foo(req) if err != nil { ⌘ Read more